Author: sveinung
Date: Sun Feb 22 10:54:09 2015
New Revision: 28278

URL: http://svn.gna.org/viewcvs/freeciv?rev=28278&view=rev
Log:
Always clear a unit's old goto_tile when receiving new orders for it.

See patch #5853

Modified:
    trunk/server/unithand.c

Modified: trunk/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=28278&r1=28277&r2=28278&view=diff
==============================================================================
--- trunk/server/unithand.c     (original)
+++ trunk/server/unithand.c     Sun Feb 22 10:54:09 2015
@@ -3004,6 +3004,9 @@
 
   if (!packet->repeat) {
     punit->goto_tile = index_to_tile(packet->dest_tile);
+  } else {
+    /* Make sure that no old goto_tile remains. */
+    punit->goto_tile = NULL;
   }
 
 #ifdef DEBUG


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to