From ecc99972771a0cf9854f62e338af5cf114b3e5d3 Mon Sep 17 00:00:00 2001 From: yexo Date: Thu, 22 Dec 2011 17:07:54 +0000 Subject: (svn r23657) -Fix (r22958): loading of very old savegames with custom town names failed --- src/saveload/town_sl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/saveload') 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"); } -- cgit v1.2.3-70-g09d2