From 82f7140357b8b13e5f3c2eea715af936e5debb28 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Fri, 10 Nov 2006 11:45:50 +0000 Subject: (svn r7124) -Fix (r37xx): sizeof(bool) = 4 for (certain) OSX do not assume it is 1. This would break the saving of certain values to the config. Thanks PandaMojo ford ebugging. --- settings.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/settings.c b/settings.c index 2d1bb288c..a8bff597d 100644 --- a/settings.c +++ b/settings.c @@ -776,6 +776,8 @@ static void ini_save_settings(IniFile *ini, const SettingDesc *sd, const char *g case SDT_MANYOFMANY: switch (GetVarMemType(sld->conv)) { case SLE_VAR_BL: + if (*(bool*)ptr == (bool)(unsigned long)p) continue; + break; case SLE_VAR_I8: case SLE_VAR_U8: if (*(byte*)ptr == (byte)(unsigned long)p) continue; -- cgit v1.2.3-70-g09d2