summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/settings.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index a37eadf65..2cce2d35c 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -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);