From d77b5b562c9c7a700434e6601358f01dbb6c1097 Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 11 Aug 2009 14:55:35 +0000 Subject: [PATCH] (svn r17153) -Fix (r11429): don't allow further remapping of already remapped string --- src/newgrf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 8c8b6e3292..e7e83fa223 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -292,7 +292,7 @@ StringID MapGRFStringID(uint32 grfid, StringID str) /* We have some changes in our cargo strings, resulting in some missing. */ TEXID_TO_STRINGID(0x000E, 0x002D, STR_CARGO_PLURAL_NOTHING); TEXID_TO_STRINGID(0x002E, 0x004D, STR_CARGO_SINGULAR_NOTHING); - if (str >= 0x004E && str <= 0x006D) str = units_volume[str - 0x004E]; + if (str >= 0x004E && str <= 0x006D) return units_volume[str - 0x004E]; TEXID_TO_STRINGID(0x006E, 0x008D, STR_QUANTITY_NOTHING); TEXID_TO_STRINGID(0x008E, 0x00AD, STR_ABBREV_NOTHING);