Author: sveinung Date: Sun Feb 22 11:16:34 2015 New Revision: 28281 URL: http://svn.gna.org/viewcvs/freeciv?rev=28281&view=rev Log: Always clear a unit's old goto_tile when receiving new orders for it.
See patch #5853 Modified: branches/S2_6/server/unithand.c Modified: branches/S2_6/server/unithand.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/unithand.c?rev=28281&r1=28280&r2=28281&view=diff ============================================================================== --- branches/S2_6/server/unithand.c (original) +++ branches/S2_6/server/unithand.c Sun Feb 22 11:16:34 2015 @@ -2955,6 +2955,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