From 5fe04f2db718b38e05750b98439ede5429d48771 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 19 Sep 2007 18:55:26 +0000 Subject: (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 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; } -- cgit v1.2.3-70-g09d2