diff options
author | rubidium <rubidium@openttd.org> | 2007-02-11 23:18:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-02-11 23:18:01 +0000 |
commit | 65001270efdde7a940f28b384dd5a35d48122aeb (patch) | |
tree | f82eda9755188e1978e38403e46c60ead2d16e04 /src | |
parent | f8ceee0a345c2284862094f2aa8d6d46c1ff89ed (diff) | |
download | openttd-65001270efdde7a940f28b384dd5a35d48122aeb.tar.xz |
(svn r8684) -Fix [FS#483] (r3720): a bool (uint32 in PPC) was written to as a uint8. Later those bools are used as index into an array as they expect the value to be 0 or 1.
Diffstat (limited to 'src')
-rw-r--r-- | src/settings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 6aaddc1df..a321dff1c 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -960,7 +960,7 @@ static void ini_save_setting_list(IniFile *ini, const char *grpname, char **list SDTG_CONDVAR(name, type, flags, guiflags, var, def, min, max, interval, str, proc, 0, SL_MAX_VERSION) #define SDTG_CONDBOOL(name, flags, guiflags, var, def, str, proc, from, to)\ - SDTG_GENERAL(name, SDT_BOOLX, SL_VAR, SLE_UINT8, flags, guiflags, var, 0, def, 0, 1, 0, NULL, str, proc, from, to) + SDTG_GENERAL(name, SDT_BOOLX, SL_VAR, SLE_BOOL, flags, guiflags, var, 0, def, 0, 1, 0, NULL, str, proc, from, to) #define SDTG_BOOL(name, flags, guiflags, var, def, str, proc)\ SDTG_CONDBOOL(name, flags, guiflags, var, def, str, proc, 0, SL_MAX_VERSION) |