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 | 87ad3df2844f9048d510cdecb0bd1e09aa2a508d (patch) | |
tree | ac91a1ff5145f67cfe93ac2038d379e396a7337c /src/strings.cpp | |
parent | dd666a80d5fdf68820b1acfdc59d701af4185291 (diff) | |
download | openttd-87ad3df2844f9048d510cdecb0bd1e09aa2a508d.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); |