Author: cazfi Date: Sun Aug 16 15:24:36 2015 New Revision: 29551 URL: http://svn.gna.org/viewcvs/freeciv?rev=29551&view=rev Log: Initialize infrastructure cache before threaded AI settlers use it.
See bug #23754 Modified: branches/S2_5/ai/threaded/taiplayer.c Modified: branches/S2_5/ai/threaded/taiplayer.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_5/ai/threaded/taiplayer.c?rev=29551&r1=29550&r2=29551&view=diff ============================================================================== --- branches/S2_5/ai/threaded/taiplayer.c (original) +++ branches/S2_5/ai/threaded/taiplayer.c Sun Aug 16 15:24:36 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