From c4fb8795617ee382ba61dacef0f939edfdc4819c Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 20 Feb 2009 21:05:27 +0000 Subject: (svn r15532) -Fix (r15525): don't try to load (and forget) AI data from a non-existing AI when joining a server. In other words: you can join network servers again. --- src/saveload/ai_sl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/saveload/ai_sl.cpp b/src/saveload/ai_sl.cpp index b5ee5da64..e963bd03b 100644 --- a/src/saveload/ai_sl.cpp +++ b/src/saveload/ai_sl.cpp @@ -59,7 +59,7 @@ static void Load_AIPL() SlObject(NULL, _ai_company); if (_networking && !_network_server) { - AIInstance::LoadEmpty(); + if (IsValidCompanyID(index) && !IsHumanCompany(index)) AIInstance::LoadEmpty(); continue; } -- cgit v1.2.3-70-g09d2