summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-05-21 20:51:00 +0000
committerfrosch <frosch@openttd.org>2010-05-21 20:51:00 +0000
commit393134ed6962b4297e0ac78c24b2f30872c52997 (patch)
treeada4caf20df75cf564787a68b5195020ffb5245a /src/strings.cpp
parent0040e88b7f2f833774fdbf73b618a06ac6bdb8f3 (diff)
downloadopenttd-393134ed6962b4297e0ac78c24b2f30872c52997.tar.xz
(svn r19877) -Change: Name invalid engines, cargos and industries 'invalid', if the player removed the supplying NewGRFs.
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index 1373a0b9c..e3c00b7d6 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -998,7 +998,7 @@ static char *FormatString(char *buff, const char *str, int64 *argv, uint casei,
assert(e != NULL);
- if (e->name != NULL) {
+ if (e->name != NULL && e->info.string_id != STR_NEWGRF_INVALID_ENGINE) {
buff = strecpy(buff, e->name, last);
} else {
buff = GetStringWithArgs(buff, e->info.string_id, NULL, last);