summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-08-11 14:55:35 +0000
committersmatz <smatz@openttd.org>2009-08-11 14:55:35 +0000
commitd77b5b562c9c7a700434e6601358f01dbb6c1097 (patch)
tree49ceef63fc06a6c6b129e6ff63dacb45effa5d2d
parentb84e93487f39e5c8cb336c1723fbab0bf2ff3062 (diff)
downloadopenttd-d77b5b562c9c7a700434e6601358f01dbb6c1097.tar.xz
(svn r17153) -Fix (r11429): don't allow further remapping of already remapped string
-rw-r--r--src/newgrf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 8c8b6e329..e7e83fa22 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);