diff options
author | yexo <yexo@openttd.org> | 2011-12-22 17:07:54 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2011-12-22 17:07:54 +0000 |
commit | ecc99972771a0cf9854f62e338af5cf114b3e5d3 (patch) | |
tree | 8c1ad124886ea7067d9a54f83bd9e9184b506670 /src/saveload | |
parent | dd502e1448ef5e2a35aa71b33633bccdd3ae3a96 (diff) | |
download | openttd-ecc99972771a0cf9854f62e338af5cf114b3e5d3.tar.xz |
(svn r23657) -Fix (r22958): loading of very old savegames with custom town names failed
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 3af31c57c..8ef8068c9 100644 --- a/src/saveload/town_sl.cpp +++ b/src/saveload/town_sl.cpp @@ -274,7 +274,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 + 1)) { + if (t->townnamegrfid == 0 && !IsInsideMM(t->townnametype, SPECSTR_TOWNNAME_START, SPECSTR_TOWNNAME_LAST + 1) && GB(t->townnametype, 11, 5) != 15) { SlErrorCorrupt("Invalid town name generator"); } |