From 0eaa2ffa630d7ec21447af34ed9e7cbef76ccc50 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 20 Feb 2011 20:58:32 +0000 Subject: (svn r22122) -Fix/change: when a NOT_REACHED in saveload can be reached due to an invalid savegame, use SlErrorCorrupt instead --- src/saveload/vehicle_sl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/saveload') diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp index 4529dc50a..2cfc704a1 100644 --- a/src/saveload/vehicle_sl.cpp +++ b/src/saveload/vehicle_sl.cpp @@ -326,7 +326,7 @@ void AfterLoadVehicles(bool part_of_load) rv->subtype = 0; rv->SetArticulatedPart(); } else { - NOT_REACHED(); + SlErrorCorrupt("Invalid road vehicle subtype"); } } } -- cgit v1.2.3-70-g09d2