mirror of https://github.com/OpenTTD/OpenTTD.git
(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.
This commit is contained in:
parent
a7cacd98ed
commit
0cb84effc8
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue