summaryrefslogtreecommitdiff
path: root/network_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'network_gui.c')
-rw-r--r--network_gui.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/network_gui.c b/network_gui.c
index 3cf00a1ea..1dc06c0f4 100644
--- a/network_gui.c
+++ b/network_gui.c
@@ -1455,11 +1455,7 @@ void ShowChatWindow(StringID str, StringID caption, int maxlen, int maxwidth, by
DeleteWindowById(WC_SEND_NETWORK_MSG, 0);
- if (str == 0xFFFF) {
- memcpy(_orig_edit_str_buf, str_buffr, MAX_QUERYSTR_LEN);
- } else {
- GetString(_orig_edit_str_buf, str);
- }
+ GetString(_orig_edit_str_buf, str);
_orig_edit_str_buf[maxlen] = 0;