diff options
Diffstat (limited to 'settings.c')
-rw-r--r-- | settings.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/settings.c b/settings.c index 2672f202a..4e94a97e6 100644 --- a/settings.c +++ b/settings.c @@ -1717,7 +1717,8 @@ static void SaveSettings(const SettingDesc *sd, void *object) const SettingDesc *i; size_t length = 0; for (i = sd; i->save.cmd != SL_END; i++) { - length += SlCalcObjMemberLength(&i->save); + const void *ptr = GetVariableAddress(object, &i->save); + length += SlCalcObjMemberLength(ptr, &i->save); } SlSetLength(length); |