Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2005:
[Freeciv-Dev] (PR#10389) fix dead explore crash
Home

[Freeciv-Dev] (PR#10389) fix dead explore crash

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#10389) fix dead explore crash
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Mon, 3 Jan 2005 09:44:18 -0800
Reply-to: bugs@xxxxxxxxxxx

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

Simple fix... committed ASAP.

  - Per

Index: ai/aiunit.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/ai/aiunit.c,v
retrieving revision 1.342
diff -u -r1.342 aiunit.c
--- ai/aiunit.c 20 Dec 2004 23:50:58 -0000      1.342
+++ ai/aiunit.c 3 Jan 2005 17:43:02 -0000
@@ -1844,7 +1844,7 @@
     /* Nothing else to do, so try exploring. */
     if (ai_manage_explorer(punit)) {
       UNIT_LOG(LOG_DEBUG, punit, "nothing else to do, so exploring");
-    } else {
+    } else if (find_unit_by_id(id)) {
       UNIT_LOG(LOG_DEBUG, punit, "nothing to do - no more exploring either");
     }
   } else {

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#10389) fix dead explore crash, Per I. Mathisen <=