mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-20 02:42:42 +01:00
Codechange: strongly type GroupID
This commit is contained in:
@@ -3335,7 +3335,7 @@ bool AfterLoadGame()
|
||||
Company *c = Company::Get(g->owner);
|
||||
if (IsSavegameVersionBefore(SLV_GROUP_NUMBERS)) {
|
||||
/* Use the index as group number when converting old savegames. */
|
||||
g->number = c->freegroups.UseID(g->index);
|
||||
g->number = c->freegroups.UseID(g->index.base());
|
||||
} else {
|
||||
c->freegroups.UseID(g->number);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user