summaryrefslogtreecommitdiff
path: root/src
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
commitd578a0868eec63a5463a60c07d602eb6b9e3893b (patch)
tree6c6d6442d0a77a9b33cf9dbb81c2059442571939 /src
parent84d5a9720342989a9a59b3a98d42941cf3531286 (diff)
downloadopenttd-d578a0868eec63a5463a60c07d602eb6b9e3893b.tar.xz
(svn r11132) -Fix: NewGRFs seem to assume that STR_NULL is an empty string or so.
Diffstat (limited to 'src')
-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;
}