mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r21328) -Fix: pass the case id when resolving NewGRF strings as well
This commit is contained in:
parent
fad75f5d5a
commit
c95b7a3965
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user