diff options
Diffstat (limited to 'network_gui.c')
-rw-r--r-- | network_gui.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/network_gui.c b/network_gui.c index 044e4d666..4c530cbb8 100644 --- a/network_gui.c +++ b/network_gui.c @@ -1512,11 +1512,9 @@ static const char *ChatTabCompletionNextItem(uint *item) const Town *t; FOR_ALL_TOWNS_FROM(t, *item - MAX_CLIENT_INFO) { - int32 temp[1]; - /* Get the town-name via the string-system */ - temp[0] = t->townnameparts; - GetStringWithArgs(chat_tab_temp_buffer, t->townnametype, temp); + SetDParam(0, t->townnameparts); + GetString(chat_tab_temp_buffer, t->townnametype); return &chat_tab_temp_buffer[0]; } } |