Author: cazfi
Date: Sat Aug  8 01:30:29 2015
New Revision: 29394

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

See patch #6179

Modified:
    trunk/client/packhand.c

Modified: trunk/client/packhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/packhand.c?rev=29394&r1=29393&r2=29394&view=diff
==============================================================================
--- trunk/client/packhand.c     (original)
+++ trunk/client/packhand.c     Sat Aug  8 01:30:29 2015
@@ -2803,7 +2803,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