mail[Wesnoth-commits] r33393 - /trunk/src/replay.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by alinktomine on March 07, 2009 - 21:46:
Author: alink
Date: Sat Mar  7 21:28:32 2009
New Revision: 33393

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33393&view=rev
Log:
Don't record/send [move] with empty path

Modified:
    trunk/src/replay.cpp

Modified: trunk/src/replay.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/replay.cpp?rev=33393&r1=33392&r2=33393&view=diff
==============================================================================
--- trunk/src/replay.cpp (original)
+++ trunk/src/replay.cpp Sat Mar  7 21:28:32 2009
@@ -297,6 +297,10 @@
 
 void replay::add_movement(const std::vector<map_location>& steps)
 {
+       if(steps.empty()) { // no move, nothing to record
+               return;
+       }
+
        config* const cmd = add_command();
 
        config move;




Related Messages


Powered by MHonArc, Updated Sat Mar 07 22:00:39 2009