summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-03-22 23:59:55 +0000
committeryexo <yexo@openttd.org>2011-03-22 23:59:55 +0000
commitdfd2899a88412b2f94b95cd583975c902ddd0514 (patch)
tree8cc7a2ef5bb38839fb3d120da18a4f00ee7821f2 /src
parentfd74c0f9dc261303e4ec0ce1a862e721b969e9fa (diff)
downloadopenttd-dfd2899a88412b2f94b95cd583975c902ddd0514.tar.xz
(svn r22271) -Fix (r22258) [FS#4562]: cargo en-route display in station was broken
Diffstat (limited to 'src')
-rw-r--r--src/strings.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index 5658031a6..22753f0da 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -782,11 +782,11 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg
break;
}
- default:
- /* Skip a single entry */
- args->GetInt64();
+ default: {
+ StringParameters tmp_params(*args, 1);
buff = GetStringWithArgs(buff, cargo_str, args, last);
break;
+ }
}
break;
}