From a8c80a5afc10ec5b678e36bdbd3ea57645a908ba Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 20 Sep 2009 10:22:27 +0000 Subject: (svn r17585) -Fix [FS#3214]: also do the StringID conversion for StringIDs that are pushed on the (NewGRF string) stack --- src/newgrf_text.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/newgrf_text.cpp') diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp index 8e081b396..2e79b47a4 100644 --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -626,8 +626,7 @@ uint RemapNewGRFStringControlCode(uint scc, char **buff, const char **str, int64 case SCC_NEWGRF_UNPRINT: *buff -= Utf8Consume(str); break; case SCC_NEWGRF_PRINT_STRING_ID: - *argv = _newgrf_textrefstack->PopUnsignedWord(); - if (*argv == STR_NULL) *argv = STR_EMPTY; + *argv = TTDPStringIDToOTTDStringIDMapping(_newgrf_textrefstack->PopUnsignedWord()); break; } } -- cgit v1.2.3-54-g00ecf