diff options
author | rubidium <rubidium@openttd.org> | 2011-12-04 08:20:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-12-04 08:20:01 +0000 |
commit | 432c16d5b9f6d675db0c82d4c0f8f696fbf537b0 (patch) | |
tree | 3b147589a9d5ac9271f68da15d34a7094a389b53 /src/saveload | |
parent | a37e8ebe4328fa22844a88ee4a5e004200b55c97 (diff) | |
download | openttd-432c16d5b9f6d675db0c82d4c0f8f696fbf537b0.tar.xz |
(svn r23418) -Fix [FS#4866] (r22958): saves made with the Catalan town name generator would trigger a "savegame corrupt" exception
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/town_sl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/town_sl.cpp b/src/saveload/town_sl.cpp index df0dad0e3..fbee07655 100644 --- a/src/saveload/town_sl.cpp +++ b/src/saveload/town_sl.cpp @@ -272,7 +272,7 @@ static void Load_TOWN() SlObject(&t->received[i], _town_received_desc); } - if (t->townnamegrfid == 0 && !IsInsideMM(t->townnametype, SPECSTR_TOWNNAME_START, SPECSTR_TOWNNAME_LAST)) { + if (t->townnamegrfid == 0 && !IsInsideMM(t->townnametype, SPECSTR_TOWNNAME_START, SPECSTR_TOWNNAME_LAST + 1)) { SlErrorCorrupt("Invalid town name generator"); } |