mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-06 14:25:24 +00:00
(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.
This commit is contained in:
parent
f8ceee0a34
commit
65001270ef
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user