diff options
author | glx <glx@openttd.org> | 2012-12-03 21:03:13 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2012-12-03 21:03:13 +0000 |
commit | 5d74b679e6fdaf1732843056e36f91a221443689 (patch) | |
tree | 1835177f1d2f5cf0a923baae986a76db177b41a7 /src/window_gui.h | |
parent | efd6e29b52a480bd3fad95b8b6c8f162ad1f8a23 (diff) | |
download | openttd-5d74b679e6fdaf1732843056e36f91a221443689.tar.xz |
(svn r24780) -Fix [FS#5378]: passing an int to a function expecting a byte can have side effects when MSVC optimises it
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index ab3b83505..6cd218793 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -463,7 +463,7 @@ public: } void UnfocusFocusedWidget(); - bool SetFocusedWidget(byte widget_index); + bool SetFocusedWidget(int widget_index); EventState HandleEditBoxKey(int wid, uint16 key, uint16 keycode); |