mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-21 13:39:09 +00:00
(svn r10316) -Codechange: (consistently) use index to refer to group names. Also the group string_id is irrelevant unless it is a custom name, so don't 'waste' a savegame string id.
This commit is contained in:
@@ -857,7 +857,7 @@ static char* FormatString(char* buff, const char* str, const int64* argv, uint c
|
||||
assert(IsValidGroup(g));
|
||||
|
||||
args[0] = g->index;
|
||||
buff = GetStringWithArgs(buff, (g->string_id == STR_SV_GROUP_NAME) ? (StringID)STR_GROUP_NAME_FORMAT : g->string_id, args, last);
|
||||
buff = GetStringWithArgs(buff, IsCustomName(g->string_id) ? g->string_id : (StringID)STR_GROUP_NAME_FORMAT, args, last);
|
||||
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user