Changeset - r15334:d0f61836786f
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-06-13 14:52:42
frosch@openttd.org
(svn r19985) -Fix (r19980): Loading preview data from old savegames failed indeterministically due to non-zeroed memory allocation. Thanks smatz.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/saveload/company_sl.cpp
Show inline comments
 
@@ -344,6 +344,7 @@ static void Check_PLYR()
 
	int index;
 
	while ((index = SlIterateArray()) != -1) {
 
		CompanyProperties *cprops = new CompanyProperties();
 
		memset(cprops, 0, sizeof(*cprops));
 
		SaveLoad_PLYR_common(NULL, cprops);
 

	
 
		/* We do not load old custom names */
0 comments (0 inline, 0 general)