(svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
This commit is contained in:
@@ -1571,7 +1571,7 @@ bool AfterLoadGame()
|
||||
if (IsBuoyTile(t) || IsDriveThroughStopTile(t) || IsTileType(t, MP_WATER)) {
|
||||
Owner o = GetTileOwner(t);
|
||||
if (o < MAX_COMPANIES && !Company::IsValidID(o)) {
|
||||
Backup<CompanyByte> cur_company(_current_company, o);
|
||||
Backup<CompanyByte> cur_company(_current_company, o, FILE_LINE);
|
||||
ChangeTileOwner(t, o, INVALID_OWNER);
|
||||
cur_company.Restore();
|
||||
}
|
||||
|
Reference in New Issue
Block a user