diff options
author | frosch <frosch@openttd.org> | 2010-06-05 12:16:12 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-06-05 12:16:12 +0000 |
commit | 1d3adb2b66989630b2a3c201ac1210a886d41a51 (patch) | |
tree | c7c2c22646cfdeb1312455bfd9d59674b7ff96be /src/saveload | |
parent | 406c2a986571ce594f491c0fde225b89f14ac8c3 (diff) | |
download | openttd-1d3adb2b66989630b2a3c201ac1210a886d41a51.tar.xz |
(svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/afterload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index 59c743012..5b9553be3 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -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(); } |