mirror of https://github.com/OpenTTD/OpenTTD
(svn r22357) -Fix (r22345): crash when opening the chat box or company password input box
parent
e6659eb875
commit
e2d5ce1b0e
|
@ -288,7 +288,7 @@ struct NetworkChatWindow : public QueryStringBaseWindow {
|
||||||
this->dtype = type;
|
this->dtype = type;
|
||||||
this->dest = dest;
|
this->dest = dest;
|
||||||
this->afilter = CS_ALPHANUMERAL;
|
this->afilter = CS_ALPHANUMERAL;
|
||||||
InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size, 0);
|
InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size);
|
||||||
|
|
||||||
static const StringID chat_captions[] = {
|
static const StringID chat_captions[] = {
|
||||||
STR_NETWORK_CHAT_ALL_CAPTION,
|
STR_NETWORK_CHAT_ALL_CAPTION,
|
||||||
|
|
|
@ -2224,7 +2224,7 @@ struct NetworkCompanyPasswordWindow : public QueryStringBaseWindow {
|
||||||
|
|
||||||
this->parent = parent;
|
this->parent = parent;
|
||||||
this->afilter = CS_ALPHANUMERAL;
|
this->afilter = CS_ALPHANUMERAL;
|
||||||
InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size, 0);
|
InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size);
|
||||||
this->SetFocusedWidget(NCPWW_PASSWORD);
|
this->SetFocusedWidget(NCPWW_PASSWORD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue