Changeset - r19153:682ab40a374a
[Not reviewed]
master
0 1 0
rubidium - 13 years ago 2012-03-17 11:14:25
rubidium@openttd.org
(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.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/saveload/ai_sl.cpp
Show inline comments
 
@@ -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);
 

	
0 comments (0 inline, 0 general)