summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-10-14 10:54:51 +0000
committeryexo <yexo@openttd.org>2011-10-14 10:54:51 +0000
commit1312c35bb6504b4972ec153759daee58682a06f7 (patch)
treecf61e344771dc54f180c2b1c6b1cd754b0697524 /src
parentbac8ce6b41c5c0886a83ce3e94801d28c2269851 (diff)
downloadopenttd-1312c35bb6504b4972ec153759daee58682a06f7.tar.xz
(svn r23028) -Fix: when using a gender choice list there was still a value popped twice from the newgrf textstack
Diffstat (limited to 'src')
-rw-r--r--src/strings.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index 36fe46dc8..393c7884f 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -668,8 +668,7 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg
uint orig_offset = args->offset;
/* When there is no array with types there is no need to do a dry run. */
- if (!args->HasTypeInformation() && !UsingNewGRFTextStack()) dry_run = true;
- if (!dry_run) {
+ if (args->HasTypeInformation() && !dry_run) {
if (UsingNewGRFTextStack()) {
/* Values from the NewGRF text stack are only copied to the normal
* argv array at the time they are encountered. That means that if