diff options
author | rubidium <rubidium@openttd.org> | 2012-03-17 11:14:25 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2012-03-17 11:14:25 +0000 |
commit | 4e3b95067bdc6b86c12d5add484d3938807304c3 (patch) | |
tree | b6cbd30e0044154f4d9271596fbad6775bd5eb63 /src | |
parent | a39bed9ae6bcc58a1bd0148941a061bb71df6fed (diff) | |
download | openttd-4e3b95067bdc6b86c12d5add484d3938807304c3.tar.xz |
(svn r24033) -Fix: reset "is random" status of temporary variable during saveload as it's not always written to when loading an AI which means it'd be taking the is random setting of another AI.
Diffstat (limited to 'src')
-rw-r--r-- | src/saveload/ai_sl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/saveload/ai_sl.cpp b/src/saveload/ai_sl.cpp index 00ae7d72f..51d0a50b8 100644 --- a/src/saveload/ai_sl.cpp +++ b/src/saveload/ai_sl.cpp @@ -67,6 +67,7 @@ static void Load_AIPL() while ((index = (CompanyID)SlIterateArray()) != (CompanyID)-1) { if (index >= MAX_COMPANIES) SlErrorCorrupt("Too many AI configs"); + _ai_saveload_is_random = 0; _ai_saveload_version = -1; SlObject(NULL, _ai_company); |