summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-20 10:22:27 +0000
committerrubidium <rubidium@openttd.org>2009-09-20 10:22:27 +0000
commita8c80a5afc10ec5b678e36bdbd3ea57645a908ba (patch)
treeaffb7227d886311abbf5d46ae1f7a76852297b4b /src
parent47bd3ee4ba7308ea2e27f2ddbdd75b81c4cec3c7 (diff)
downloadopenttd-a8c80a5afc10ec5b678e36bdbd3ea57645a908ba.tar.xz
(svn r17585) -Fix [FS#3214]: also do the StringID conversion for StringIDs that are pushed on the (NewGRF string) stack
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_text.cpp3
1 files changed, 1 insertions, 2 deletions
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;
}
}