(svn r23657) -Fix (r22958): loading of very old savegames with custom town names failed

This commit is contained in:
yexo 2011-12-22 17:07:54 +00:00
parent a7b732e43e
commit 9cdeead3bb

View File

@ -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");
}