mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-08 01:10:28 +00:00
(svn r20140) -Fix: Initialize the state of OnKeyPress at the world generation window (Zuu).
This commit is contained in:
parent
bec213d60b
commit
83d7a38c95
@ -688,7 +688,7 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow {
|
||||
|
||||
virtual EventState OnKeyPress(uint16 key, uint16 keycode)
|
||||
{
|
||||
EventState state;
|
||||
EventState state = ES_NOT_HANDLED;
|
||||
this->HandleEditBoxKey(GLAND_RANDOM_EDITBOX, key, keycode, state);
|
||||
/* the seed is unsigned, therefore atoi cannot be used.
|
||||
* As UINT32_MAX is a 'magic' value (use random seed) it
|
||||
|
Loading…
Reference in New Issue
Block a user