(svn r6169) -Codechange: Use GetString() instead of GetStringWithArgs() which should be

integral to strings.c
This commit is contained in:
Darkvater
2006-08-27 10:04:33 +00:00
parent 5dec21ff0f
commit 2f6a4bc1a9
6 changed files with 14 additions and 20 deletions

View File

@@ -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];
}
}