forked from mirror/OpenTTD
Codechange: use std::source_location over __FILE__ and __LINE__ for Backup
This commit is contained in:
@@ -1857,7 +1857,7 @@ bool AfterLoadGame()
|
||||
if (IsBuoyTile(t) || IsDriveThroughStopTile(t) || IsTileType(t, MP_WATER)) {
|
||||
Owner o = GetTileOwner(t);
|
||||
if (o < MAX_COMPANIES && !Company::IsValidID(o)) {
|
||||
Backup<CompanyID> cur_company(_current_company, o, FILE_LINE);
|
||||
Backup<CompanyID> cur_company(_current_company, o);
|
||||
ChangeTileOwner(t, o, INVALID_OWNER);
|
||||
cur_company.Restore();
|
||||
}
|
||||
|
Reference in New Issue
Block a user