changeset 18199:728c09f456b3 draft

(svn r23028) -Fix: when using a gender choice list there was still a value popped twice from the newgrf textstack
author yexo <yexo@openttd.org>
date Fri, 14 Oct 2011 10:54:51 +0000
parents 6af38106a773
children 4da6f6ff6a67
files src/strings.cpp
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -668,8 +668,7 @@
 	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