Mercurial > hg > openttd
changeset 18809:5120744f48c6 draft
(svn r23657) -Fix (r22958): loading of very old savegames with custom town names failed
author | yexo <yexo@openttd.org> |
---|---|
date | Thu, 22 Dec 2011 17:07:54 +0000 |
parents | 88db156f1882 |
children | 066c1114ff79 |
files | src/saveload/town_sl.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/saveload/town_sl.cpp +++ b/src/saveload/town_sl.cpp @@ -274,7 +274,7 @@ 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"); }