diff options
author | rubidium <rubidium@openttd.org> | 2009-12-21 20:32:20 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-12-21 20:32:20 +0000 |
commit | 0cb84effc80eef7ff0c72573e5bb2369a9401526 (patch) | |
tree | b4bb50f0c89e96aa81f20384c1a20c7557050961 /src | |
parent | a7cacd98ed47e15c1563650466fc9a5a9ed7dd27 (diff) | |
download | openttd-0cb84effc80eef7ff0c72573e5bb2369a9401526.tar.xz |
(svn r18595) -Fix (r18277): one couldn't enter test via the keyboard in the company password window. Also replace a magic number with a enumified constant.
Diffstat (limited to 'src')
-rw-r--r-- | src/network/network_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 546859fb3..62378d08e 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -2328,7 +2328,7 @@ struct NetworkCompanyPasswordWindow : public QueryStringBaseWindow { virtual EventState OnKeyPress(uint16 key, uint16 keycode) { EventState state = ES_NOT_HANDLED; - switch (this->HandleEditBoxKey(4, key, keycode, state)) { + switch (this->HandleEditBoxKey(NCPWW_PASSWORD, key, keycode, state)) { default: break; case HEBR_CONFIRM: |