diff options
author | smatz <smatz@openttd.org> | 2011-04-22 15:03:08 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2011-04-22 15:03:08 +0000 |
commit | e2d5ce1b0ed775c5dbc92dc309fc93dea985e72f (patch) | |
tree | a7b1207e46bf66505f48a2cbe18dc11a435b9d20 /src/network | |
parent | e6659eb87516beb58e6d83aa0b6ca7a959c20523 (diff) | |
download | openttd-e2d5ce1b0ed775c5dbc92dc309fc93dea985e72f.tar.xz |
(svn r22357) -Fix (r22345): crash when opening the chat box or company password input box
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_chat_gui.cpp | 2 | ||||
-rw-r--r-- | src/network/network_gui.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp index 6a2c768aa..0a0d51f39 100644 --- a/src/network/network_chat_gui.cpp +++ b/src/network/network_chat_gui.cpp @@ -288,7 +288,7 @@ struct NetworkChatWindow : public QueryStringBaseWindow { this->dtype = type; this->dest = dest; 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[] = { STR_NETWORK_CHAT_ALL_CAPTION, diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 6f2f28b63..1d8460d6a 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -2224,7 +2224,7 @@ struct NetworkCompanyPasswordWindow : public QueryStringBaseWindow { this->parent = parent; 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); } |