The _variables array is sized from syncArray, so there's no need to store its size in the savegame
svn-id: r44940
This commit is contained in:
parent
07736ede19
commit
1f00be5c15
1 changed files with 1 additions and 8 deletions
|
@ -317,14 +317,7 @@ void LocalVariables::saveLoadWithSerializer(Common::Serializer &s) {
|
|||
void Object::saveLoadWithSerializer(Common::Serializer &s) {
|
||||
s.syncAsSint32LE(_flags);
|
||||
sync_reg_t(s, _pos);
|
||||
int varCount;
|
||||
if (s.isLoading()) {
|
||||
s.syncAsSint32LE(varCount);
|
||||
_variables.resize(varCount);
|
||||
} else {
|
||||
varCount = _variables.size();
|
||||
s.syncAsSint32LE(varCount);
|
||||
}
|
||||
s.skip(4, VER(9), VER(12)); // OBSOLETE: Used to be variable_names_nr
|
||||
s.syncAsSint32LE(_methodCount); // that's actually a uint16
|
||||
|
||||
syncArray<reg_t>(s, _variables);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue