diff options
author | rubidium <rubidium@openttd.org> | 2010-11-25 23:14:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-11-25 23:14:48 +0000 |
commit | c95b7a396504d5c11766ebab34eb7a812f65fcbf (patch) | |
tree | febbea7e8e875d2b6bdc7f3cfb178e83938487af /src | |
parent | fad75f5d5ab4686f8483d521c9f0589e20c85c14 (diff) | |
download | openttd-c95b7a396504d5c11766ebab34eb7a812f65fcbf.tar.xz |
(svn r21328) -Fix: pass the case id when resolving NewGRF strings as well
Diffstat (limited to 'src')
-rw-r--r-- | src/strings.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index a68144626..f85ae82a4 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -142,13 +142,13 @@ char *GetStringWithArgs(char *buffr, uint string, int64 *argv, const char *last) break; case 28: - return FormatString(buffr, GetGRFStringPtr(index), argv, 0, last); + return FormatString(buffr, GetGRFStringPtr(index), argv, GB(string, 24, 8), last); case 29: - return FormatString(buffr, GetGRFStringPtr(index + 0x0800), argv, 0, last); + return FormatString(buffr, GetGRFStringPtr(index + 0x0800), argv, GB(string, 24, 8), last); case 30: - return FormatString(buffr, GetGRFStringPtr(index + 0x1000), argv, 0, last); + return FormatString(buffr, GetGRFStringPtr(index + 0x1000), argv, GB(string, 24, 8), last); case 31: NOT_REACHED(); |