Changeset - r18018:10e69ccd585f
[Not reviewed]
master
0 1 0
planetmaker - 13 years ago 2011-08-25 16:37:27
planetmaker@openttd.org
(svn r22843) -Fix [FS#4748]: Harden savegame load against too many ai config settings (monoid)
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/saveload/ai_sl.cpp
Show inline comments
 
@@ -66,6 +66,8 @@ static void Load_AIPL()
 

	
 
	CompanyID index;
 
	while ((index = (CompanyID)SlIterateArray()) != (CompanyID)-1) {
 
		if (index >= MAX_COMPANIES) SlErrorCorrupt("Too many AI configs");
 

	
 
		_ai_saveload_version = -1;
 
		SlObject(NULL, _ai_company);
 

	
0 comments (0 inline, 0 general)