[Freeciv-Dev] (PR#8556) [freeciv #8518]
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] (PR#8556) [freeciv #8518] |
From: |
"Jörgen Tegnér" <jorgen.tegner@xxxxxxxxx> |
Date: |
Tue, 20 Apr 2004 11:35:55 -0700 |
Reply-to: |
rt@xxxxxxxxxxx |
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8556 >
This transaction appears to have no content
Sorry, I fumbled with diff. Attached is a better one
Jörgen
--
Jörgen Tegnér <jorgen.tegner@xxxxxxxxx>
--- sha.c.~1.1.~ 2004-04-14 19:18:36.000000000 +0200
+++ sha.c 2004-04-15 16:47:05.000000000 +0200
@@ -54,6 +54,8 @@
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);
@@ -66,6 +68,9 @@
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);
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#8556) [freeciv #8518],
Jörgen Tegnér <=
|
|