Author: cazfi
Date: Sun Aug 16 15:24:29 2015
New Revision: 29550

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

See bug #23754

Modified:
    branches/S2_6/ai/threaded/taiplayer.c

Modified: branches/S2_6/ai/threaded/taiplayer.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/ai/threaded/taiplayer.c?rev=29550&r1=29549&r2=29550&view=diff
==============================================================================
--- branches/S2_6/ai/threaded/taiplayer.c       (original)
+++ branches/S2_6/ai/threaded/taiplayer.c       Sun Aug 16 15:24:29 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