[Freeciv-Dev] (PR#10389) fix dead explore crash
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<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 <=
|
|