summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-21 20:32:20 +0000
committerrubidium <rubidium@openttd.org>2009-12-21 20:32:20 +0000
commit0cb84effc80eef7ff0c72573e5bb2369a9401526 (patch)
treeb4bb50f0c89e96aa81f20384c1a20c7557050961 /src
parenta7cacd98ed47e15c1563650466fc9a5a9ed7dd27 (diff)
downloadopenttd-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.cpp2
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: