Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2005:
[Freeciv-Dev] (PR#11973) remove unit_list_size assertion
Home

[Freeciv-Dev] (PR#11973) remove unit_list_size assertion

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#11973) remove unit_list_size assertion
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 18 Jan 2005 21:30:56 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11973 >

This assertion has been helpful in tracking down this bug, but for the 
release it should be removed.

-jason

? win32.diff
Index: client/packhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/packhand.c,v
retrieving revision 1.408.2.16
diff -u -r1.408.2.16 packhand.c
--- client/packhand.c   15 Dec 2004 00:15:42 -0000      1.408.2.16
+++ client/packhand.c   19 Jan 2005 05:30:17 -0000
@@ -1989,7 +1989,6 @@
              unit_type(punit)->name, TILE_XY(punit->tile),
              unit_owner(punit)->name);
     } unit_list_iterate_end;
-    assert(unit_list_size(&ptile->units) == 0);
     unit_list_unlink_all(&ptile->units);
   }
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#11973) remove unit_list_size assertion, Jason Short <=