summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-09-03 16:10:42 +0000
committerfrosch <frosch@openttd.org>2011-09-03 16:10:42 +0000
commit0dca1941ad682397af4635da3930e6fbdb1da77d (patch)
tree862bc6adf2bddcc5de8e63993da201a168ef2a8e /src
parent5ccd091fd1bdf9a92b2424bba2dd63b372df0639 (diff)
downloadopenttd-0dca1941ad682397af4635da3930e6fbdb1da77d.tar.xz
(svn r22882) -Fix [FS#4758]: [NewGRF] DCxx text references via the textstack are not allowed, but caused crash.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp
index 334fa9871..74b024ca9 100644
--- a/src/newgrf_text.cpp
+++ b/src/newgrf_text.cpp
@@ -57,7 +57,7 @@ StringID TTDPStringIDToOTTDStringIDMapping(StringID str)
};
/* A string straight from a NewGRF; no need to remap this as it's already mapped. */
- if (IsInsideMM(str, 0xD000, 0xD7FF) || IsInsideMM(str, 0xDC00, 0xDCFF)) return str;
+ if (IsInsideMM(str, 0xD000, 0xD7FF)) return str;
#define TEXTID_TO_STRINGID(begin, end, stringid) if (str >= begin && str <= end) return str + (stringid - begin)
/* We have some changes in our cargo strings, resulting in some missing. */