From d578a0868eec63a5463a60c07d602eb6b9e3893b Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 19 Sep 2007 18:55:26 +0000 Subject: [PATCH] (svn r11132) -Fix: NewGRFs seem to assume that STR_NULL is an empty string or so. --- src/newgrf.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index d13b1c83f7..9037ea6380 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; }