Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] (PR#10579) Assertion failed: (unit_list_size(&ptile->units
Home

[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]
To: alexis.albinet@xxxxxxxxxxx, mail@xxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#10579) Assertion failed: (unit_list_size(&ptile->units) == 0)
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 15 Nov 2004 09:24:02 -0800
Reply-to: rt@xxxxxxxxxxx

<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 <=