Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2004:
[Freeciv-Dev] (PR#8518) Patch
Home

[Freeciv-Dev] (PR#8518) Patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#8518) Patch
From: "Jörgen Tegnér" <jorgen.tegner@xxxxxxxxx>
Date: Tue, 20 Apr 2004 11:23:13 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8518 >

Hi, 

here's a simple patch to fix the reported problem.

--- sha.c       2004-04-15 16:47:05.000000000 +0200
+++ sha.c.~1.1.~        2004-04-14 19:18:36.000000000 +0200
@@ -54,8 +54,6 @@
   struct unit *punit = find_unit_by_id(id);
   struct unit *pold_unit = unit_list_find(&previous_units, id);
 
-  if(!pold_unit || !punit) return;
-
   freelog(LOG_DEBUG, "sha got unit: %d", id);
 
   assert(pold_unit);
@@ -68,9 +66,6 @@
 static void sha_unit_new(int id)
 {
   struct unit *punit = find_unit_by_id(id);
-
-  if(!punit) return;
-
   struct unit *pold_unit = create_unit_virtual(get_player(punit->owner),
                                               NULL, 0, 0);
 
Jörgen




Attachment: signature.asc
Description: PGP signature


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#8518) Patch, Jörgen Tegnér <=