From 2c89bfbc8167c8808be71d08c918d52d92c5300d Mon Sep 17 00:00:00 2001 From: truebrain Date: Mon, 12 Jan 2009 19:31:00 +0000 Subject: (svn r15038) -Fix (r15027): loading older savegames failed --- src/company_base.h | 2 +- src/company_cmd.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/company_base.h b/src/company_base.h index 37b5ba5c5..9f2c3c61a 100644 --- a/src/company_base.h +++ b/src/company_base.h @@ -70,7 +70,7 @@ struct Company : PoolItem { Money bankrupt_value; bool is_ai; - bool is_noai; ///< This is a NoAI player (for loading old savegames properly). Part of the NoAI 'hack' to retain savegame compatability with trunk + bool is_noai; ///< This is a NoAI player (for loading old savegames properly) class AIInstance *ai_instance; class AIInfo *ai_info; diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp index 3c3ff9ff3..0cab1e0c4 100644 --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -51,7 +51,7 @@ DEFINE_OLD_POOL_GENERIC(Company, Company) Company::Company(uint16 name_1, bool is_ai) : name_1(name_1), location_of_HQ(INVALID_TILE), is_ai(is_ai) { for (uint j = 0; j < 4; j++) this->share_owners[j] = COMPANY_SPECTATOR; - this->is_noai = true; + this->is_noai = false; } Company::~Company() -- cgit v1.2.3-54-g00ecf