summaryrefslogtreecommitdiff
path: root/src/settings_internal.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-02-04 15:01:37 +0000
committersmatz <smatz@openttd.org>2009-02-04 15:01:37 +0000
commit496b541cb1eb64405ad6e89a322530e8875e183d (patch)
tree92e9abb3527ae2f6b8e46369018ce3c00736df56 /src/settings_internal.h
parent3cf7255c4f6fc9b41cd57fa9ed1be3d53edf5e18 (diff)
downloadopenttd-496b541cb1eb64405ad6e89a322530e8875e183d.tar.xz
(svn r15334) -Codechange: reset setting to old value when the callback procedure returns false
Diffstat (limited to 'src/settings_internal.h')
-rw-r--r--src/settings_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings_internal.h b/src/settings_internal.h
index 20cd4eca5..07ec41700 100644
--- a/src/settings_internal.h
+++ b/src/settings_internal.h
@@ -48,7 +48,7 @@ template <> struct EnumPropsT<SettingGuiFlagLong> : MakeEnumPropsT<SettingGuiFla
typedef TinyEnumT<SettingGuiFlagLong> SettingGuiFlag;
-typedef int32 OnChange(int32 var); ///< callback prototype on data modification
+typedef bool OnChange(int32 var); ///< callback prototype on data modification
typedef int32 OnConvert(const char *value); ///< callback prototype for convertion error
struct SettingDescBase {