From 47025eee617c4dfeb03cdc58d1cbe12f9d0c3189 Mon Sep 17 00:00:00 2001 From: gfgtdf Date: Sat, 6 Jun 2015 20:54:59 +0200 Subject: [PATCH] default persistent= to false for network_ai controllers Previously the default value for persistent= in [side] was different for AI and NETWORK_AI controller. This caused OOS (this could for example be observed in LoW scenario 4). Backports https://github.com/wesnoth/wesnoth/commit/fe9b02059b6ec7ba72278e4ed43aeff93263da26 --- src/team.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/team.cpp b/src/team.cpp index b3a39faea087..18c150472c1e 100644 --- a/src/team.cpp +++ b/src/team.cpp @@ -225,7 +225,10 @@ void team::team_info::read(const config &cfg) else if (control == "network") controller = NETWORK; else if (control == "network_ai") + { + persistent = false; controller = NETWORK_AI; + } else if (control == "null") { disallow_observers = cfg["disallow_observers"].to_bool(true);