summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-02-20 20:58:32 +0000
committerrubidium <rubidium@openttd.org>2011-02-20 20:58:32 +0000
commit0eaa2ffa630d7ec21447af34ed9e7cbef76ccc50 (patch)
tree936549584eb5fa8ce69e1a6f40a31fb9daa046af /src/saveload
parentd594a219c60b0042d72a3071f7f5ea49291ef6af (diff)
downloadopenttd-0eaa2ffa630d7ec21447af34ed9e7cbef76ccc50.tar.xz
(svn r22122) -Fix/change: when a NOT_REACHED in saveload can be reached due to an invalid savegame, use SlErrorCorrupt instead
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/vehicle_sl.cpp2
1 files changed, 1 insertions, 1 deletions
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");
}
}
}