diff options
author | frosch <frosch@openttd.org> | 2011-08-20 22:06:38 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-08-20 22:06:38 +0000 |
commit | 8d3d7b4e012b51fcd42a423ea7b8c52ba7cffe81 (patch) | |
tree | ef2501673d8d85eed22becedc558981956d84bf8 /src/strings.cpp | |
parent | 7394bcb813c8f98afe4936254ac72402287c2aec (diff) | |
download | openttd-8d3d7b4e012b51fcd42a423ea7b8c52ba7cffe81.tar.xz |
(svn r22776) -Codechange: Unify the naming of NewGRF string codes; always include the size of the parameter on the stack. (based on patch by Hirundo)
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 1be6855c5..09f2243c7 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -713,8 +713,8 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg break; } - case SCC_NEWGRF_PRINT_STRING_ID: { - StringID substr = args->GetInt32(SCC_NEWGRF_PRINT_STRING_ID); + case SCC_NEWGRF_PRINT_WORD_STRING_ID: { + StringID substr = args->GetInt32(SCC_NEWGRF_PRINT_WORD_STRING_ID); str_stack.push(GetStringPtr(substr)); break; } |