Author: cazfi
Date: Sun Aug 16 15:24:22 2015
New Revision: 29549

URL: http://svn.gna.org/viewcvs/freeciv?rev=29549&view=rev
Log:
Initialize infrastructure cache before threaded AI settlers use it.

See bug #23754

Modified:
    trunk/ai/threaded/taiplayer.c

Modified: trunk/ai/threaded/taiplayer.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/ai/threaded/taiplayer.c?rev=29549&r1=29548&r2=29549&view=diff
==============================================================================
--- trunk/ai/threaded/taiplayer.c       (original)
+++ trunk/ai/threaded/taiplayer.c       Sun Aug 16 15:24:22 2015
@@ -24,6 +24,9 @@
 #include "game.h"
 #include "unit.h"
 
+/* server/advisors */
+#include "infracache.h"
+
 /* ai/default */
 #include "aiplayer.h"
 
@@ -108,6 +111,8 @@
     switch(msg->type) {
     case TAI_MSG_FIRST_ACTIVITIES:
       fc_allocate_mutex(&game.server.mutexes.city_list);
+
+      initialize_infrastructure_cache(msg->plr);
 
       /* Use _safe iterate in case the main thread
        * destroyes cities while we are iterating through these. */


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to