changeset 5066:bac7446fc18f draft

(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.
author Darkvater <Darkvater@openttd.org>
date Fri, 10 Nov 2006 11:45:50 +0000
parents 0406417cdfd6
children 69a8138f1456
files settings.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/settings.c
+++ b/settings.c
@@ -776,6 +776,8 @@
 			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;