diff options
author | rubidium <rubidium@openttd.org> | 2007-08-02 12:51:57 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-02 12:51:57 +0000 |
commit | 9458905e4c3c638d9d1cbba3fb33108bd41e4ab5 (patch) | |
tree | ac91a1ff5145f67cfe93ac2038d379e396a7337c /src/strings.cpp | |
parent | 53e6da1752c616388984c8906eb63673fb3b4050 (diff) | |
download | openttd-9458905e4c3c638d9d1cbba3fb33108bd41e4ab5.tar.xz |
(svn r10751) -Codechange: make the group struct use the pool item class as super class.
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index d8e30e2ca..6edf9e22c 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -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); |