mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-11 08:49:50 +00:00
(svn r23028) -Fix: when using a gender choice list there was still a value popped twice from the newgrf textstack
This commit is contained in:
parent
bac8ce6b41
commit
1312c35bb6
@ -668,8 +668,7 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg
|
|||||||
uint orig_offset = args->offset;
|
uint orig_offset = args->offset;
|
||||||
|
|
||||||
/* When there is no array with types there is no need to do a dry run. */
|
/* When there is no array with types there is no need to do a dry run. */
|
||||||
if (!args->HasTypeInformation() && !UsingNewGRFTextStack()) dry_run = true;
|
if (args->HasTypeInformation() && !dry_run) {
|
||||||
if (!dry_run) {
|
|
||||||
if (UsingNewGRFTextStack()) {
|
if (UsingNewGRFTextStack()) {
|
||||||
/* Values from the NewGRF text stack are only copied to the normal
|
/* Values from the NewGRF text stack are only copied to the normal
|
||||||
* argv array at the time they are encountered. That means that if
|
* argv array at the time they are encountered. That means that if
|
||||||
|
Loading…
Reference in New Issue
Block a user