diff options
author | rubidium <rubidium@openttd.org> | 2010-09-16 22:06:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-09-16 22:06:36 +0000 |
commit | 97dbb1f27d6e1cad6be0b53f74a88694562f1331 (patch) | |
tree | ce1f613fc78678b0d5c54ff939b14563f1b55a1b /src/saveload/ai_sl.cpp | |
parent | 5b733f88a8f05c84d3e0ce7a19c3c9c79054657f (diff) | |
download | openttd-97dbb1f27d6e1cad6be0b53f74a88694562f1331.tar.xz |
(svn r20819) -Fix [FS#3714]: be a bit more "lenient" w.r.t. invalid savegames; don't crash on saveload related NOT_REACHEDs, just show the user an error that the savegame is corrupted
Diffstat (limited to 'src/saveload/ai_sl.cpp')
-rw-r--r-- | src/saveload/ai_sl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/ai_sl.cpp b/src/saveload/ai_sl.cpp index 43f83cdb1..fedd3699a 100644 --- a/src/saveload/ai_sl.cpp +++ b/src/saveload/ai_sl.cpp @@ -178,7 +178,7 @@ static bool LoadObjects() case SQSL_ARRAY_TABLE_END: return false; - default: NOT_REACHED(); + default: SlErrorCorrupt("Invalid AI data type"); } } |