(svn r11132) -Fix: NewGRFs seem to assume that STR_NULL is an empty string or so.
authorrubidium
Wed, 19 Sep 2007 18:55:26 +0000
changeset 7605 9b6226ed3384
parent 7604 16666b8e91a4
child 7606 0e7c419b34e6
(svn r11132) -Fix: NewGRFs seem to assume that STR_NULL is an empty string or so.
src/newgrf.cpp
--- a/src/newgrf.cpp	Wed Sep 19 18:39:14 2007 +0000
+++ b/src/newgrf.cpp	Wed Sep 19 18:55:26 2007 +0000
@@ -272,6 +272,8 @@
 	TEXID_TO_STRINGID(0x482A, 0x483B, STR_482A_PRODUCTION_LAST_MONTH);
 #undef TEXTID_TO_STRINGID
 
+	if (str == STR_NULL) return STR_EMPTY;
+
 	return str;
 }