Mercurial > hg > openttd
changeset 13085:c4453c9f57d0 draft
(svn r17585) -Fix [FS#3214]: also do the StringID conversion for StringIDs that are pushed on the (NewGRF string) stack
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 20 Sep 2009 10:22:27 +0000 |
parents | bf8ef2376932 |
children | 0b1abde78668 |
files | src/newgrf_text.cpp |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -626,8 +626,7 @@ 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; } }