(svn r16132) -Fix (r7232/r16129): crash when saving games; r7232 is the cause of the problem, r16129 just causes it to be triggered.

This commit is contained in:
rubidium 2009-04-23 23:47:13 +00:00
parent 81dccf32c1
commit 7d76836fcb
1 changed files with 1 additions and 2 deletions

View File

@ -1650,8 +1650,7 @@ static void SaveSettings(const SettingDesc *sd, void *object)
const SettingDesc *i;
size_t length = 0;
for (i = sd; i->save.cmd != SL_END; i++) {
const void *ptr = GetVariableAddress(object, &i->save);
length += SlCalcObjMemberLength(ptr, &i->save);
length += SlCalcObjMemberLength(object, &i->save);
}
SlSetLength(length);