summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-09-19 18:55:26 +0000
committerrubidium <rubidium@openttd.org>2007-09-19 18:55:26 +0000
commit5fe04f2db718b38e05750b98439ede5429d48771 (patch)
tree6c6d6442d0a77a9b33cf9dbb81c2059442571939
parent42b629c78c7f01d1985ceecf827fac972efbb5c1 (diff)
downloadopenttd-5fe04f2db718b38e05750b98439ede5429d48771.tar.xz
(svn r11132) -Fix: NewGRFs seem to assume that STR_NULL is an empty string or so.
-rw-r--r--src/newgrf.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index d13b1c83f..9037ea638 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -272,6 +272,8 @@ static StringID MapGRFStringID(uint32 grfid, StringID str)
TEXID_TO_STRINGID(0x482A, 0x483B, STR_482A_PRODUCTION_LAST_MONTH);
#undef TEXTID_TO_STRINGID
+ if (str == STR_NULL) return STR_EMPTY;
+
return str;
}