From 1d3adb2b66989630b2a3c201ac1210a886d41a51 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 5 Jun 2010 12:16:12 +0000 Subject: (svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation. --- src/water_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/water_cmd.cpp') diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index 6912d07ec..ae8d52271 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -882,7 +882,7 @@ void DoFloodTile(TileIndex target) bool flooded = false; // Will be set to true if something is changed. - Backup cur_company(_current_company, OWNER_WATER); + Backup cur_company(_current_company, OWNER_WATER, FILE_LINE); Slope tileh = GetTileSlope(target, NULL); if (tileh != SLOPE_FLAT) { @@ -942,7 +942,7 @@ void DoFloodTile(TileIndex target) */ static void DoDryUp(TileIndex tile) { - Backup cur_company(_current_company, OWNER_WATER); + Backup cur_company(_current_company, OWNER_WATER, FILE_LINE); switch (GetTileType(tile)) { case MP_RAILWAY: -- cgit v1.2.3-70-g09d2