Codechange: don't do work GetVariableAddress() is already doing

This commit is contained in:
Patric Stout 2020-12-05 11:33:42 +01:00 committed by Patric Stout
parent c98717cb45
commit 731af1f1f3

View File

@ -1619,7 +1619,7 @@ void SlObject(void *object, const SaveLoad *sld)
}
for (; sld->cmd != SL_END; sld++) {
void *ptr = sld->global ? sld->address : GetVariableAddress(object, sld);
void *ptr = GetVariableAddress(object, sld);
SlObjectMember(ptr, sld);
}
}