mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-23 23:52:37 +00:00
(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.
This commit is contained in:
parent
2690ba03b2
commit
523b37a3e9
@ -536,6 +536,7 @@ static size_t SlCalcGlobListLength(const SaveLoadGlobVarList *desc)
|
||||
size_t length = 0;
|
||||
|
||||
while (desc->address) {
|
||||
if(_sl.version >= desc->from_version && _sl.version <= desc->to_version)
|
||||
length += SlCalcConvLen(desc->conv, NULL);
|
||||
desc++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user