[Freeciv-Dev] (PR#10579) Assertion failed: (unit_list_size(&ptile->units
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=10579 >
This patch simply disables the assert unless DEBUG is defined.
It's intended for the stable branch only.
jason
Index: client/packhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/packhand.c,v
retrieving revision 1.419
diff -u -r1.419 packhand.c
--- client/packhand.c 13 Nov 2004 08:34:16 -0000 1.419
+++ client/packhand.c 15 Nov 2004 17:23:14 -0000
@@ -1979,7 +1979,9 @@
unit_type(punit)->name, TILE_XY(punit->tile),
unit_owner(punit)->name);
} unit_list_iterate_end;
+#ifdef DEBUG
assert(unit_list_size(&ptile->units) == 0);
+#endif
unit_list_unlink_all(&ptile->units);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#10579) Assertion failed: (unit_list_size(&ptile->units) == 0),
Jason Short <=
|
|