From 432c16d5b9f6d675db0c82d4c0f8f696fbf537b0 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 4 Dec 2011 08:20:01 +0000 Subject: (svn r23418) -Fix [FS#4866] (r22958): saves made with the Catalan town name generator would trigger a "savegame corrupt" exception --- 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 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"); } -- cgit v1.2.3-70-g09d2