Changeset - r617:2663f477444e
[Not reviewed]
master
0 1 0
tron - 19 years ago 2004-12-13 07:41:04
tron@openttd.org
(svn r1041) Under certain circumstances obsolete fields are included in the size calculation of a chunk in a savegame which leads to failed loads. This wasn't triggered because the necessary conditions weren't met.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
saveload.c
Show inline comments
 
@@ -536,7 +536,8 @@ static size_t SlCalcGlobListLength(const
 
	size_t length = 0;
 

	
 
	while (desc->address) {
 
		length += SlCalcConvLen(desc->conv, NULL);
 
		if(_sl.version >= desc->from_version && _sl.version <= desc->to_version)
 
			length += SlCalcConvLen(desc->conv, NULL);
 
		desc++;
 
	}
 
	return length;
0 comments (0 inline, 0 general)