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

 At least I guess crash was caused by $subject.

 I will commit attached patch immediately to avoid actual crash. Bug
must still be fixed and this patch should be reverted after that.


 - ML

diff -Nurd -X.diff_ignore freeciv/ai/advmilitary.c freeciv/ai/advmilitary.c
--- freeciv/ai/advmilitary.c	2007-08-14 13:52:16.000000000 +0300
+++ freeciv/ai/advmilitary.c	2007-08-14 14:35:40.000000000 +0300
@@ -1038,9 +1038,13 @@
             best_choice->type = CT_BUILDING;
           } else {
 	    /* This should never happen? */
+            /* FIXME: Restore this when bug causing it to crash is fixed.
+             *        Commented out just as a critical fix to avoid crash. */
+#if 0
             CITY_LOG(LOG_DEBUG, pcity, "cannot build %s or %s",
                      improvement_rule_name(impr_req),
                      utype_rule_name(punittype));
+#endif
 	  }
         }
       }
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to