1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-20 13:09:15 +00:00

(svn r10751) -Codechange: make the group struct use the pool item class as super class.

This commit is contained in:
rubidium
2007-08-02 12:51:57 +00:00
parent dd666a80d5
commit 87ad3df284
3 changed files with 43 additions and 57 deletions

View File

@@ -849,7 +849,7 @@ static char* FormatString(char* buff, const char* str, const int64* argv, uint c
const Group *g = GetGroup(GetInt32(&argv));
int64 args[1];
assert(IsValidGroup(g));
assert(g->IsValid());
args[0] = g->index;
buff = GetStringWithArgs(buff, IsCustomName(g->string_id) ? g->string_id : (StringID)STR_GROUP_NAME_FORMAT, args, last);