Author: cazfi
Date: Sat Aug  8 01:30:36 2015
New Revision: 29395

URL: http://svn.gna.org/viewcvs/freeciv?rev=29395&view=rev
Log:
Added "Ghost units seen" message for the client's "0 == 
unit_list_size(ptile->units)" assert.

See patch #6179

Modified:
    branches/S2_6/client/packhand.c

Modified: branches/S2_6/client/packhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/packhand.c?rev=29395&r1=29394&r2=29395&view=diff
==============================================================================
--- branches/S2_6/client/packhand.c     (original)
+++ branches/S2_6/client/packhand.c     Sat Aug  8 01:30:36 2015
@@ -2771,7 +2771,7 @@
                 unit_rule_name(punit), TILE_XY(unit_tile(punit)),
                 player_name(unit_owner(punit)));
     } unit_list_iterate_end;
-    fc_assert(0 == unit_list_size(ptile->units));
+    fc_assert_msg(0 == unit_list_size(ptile->units), "Ghost units seen");
     /* Repairing... */
     unit_list_clear(ptile->units);
   }


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

Reply via email to