summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-04-29 21:31:29 +0000
committerpeter1138 <peter1138@openttd.org>2008-04-29 21:31:29 +0000
commit45034bc522c8e541b5ec8b38868d13cc6290e3ac (patch)
tree82b8c0d69acb1c38843e4fcf0b11f46a057ef270 /src/strings.cpp
parent6056d1fb3178e06bf6ce1098e918fe13edb56f18 (diff)
downloadopenttd-45034bc522c8e541b5ec8b38868d13cc6290e3ac.tar.xz
(svn r12924) -Feature: Introducing the so called 'engine pool' which primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist.
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index 7ed45a745..5cebdf7da 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -37,6 +37,7 @@
#include "settings_type.h"
#include "video/video_driver.hpp"
#include "engine_func.h"
+#include "engine_base.h"
#include "saveload.h"
#include "table/strings.h"
@@ -934,7 +935,7 @@ static char* FormatString(char* buff, const char* str, const int64* argv, uint c
if (e->name != NULL) {
buff = strecpy(buff, e->name, last);
} else {
- buff = GetStringWithArgs(buff, EngInfo(engine)->string_id, NULL, last);
+ buff = GetStringWithArgs(buff, e->info.string_id, NULL, last);
}
break;
}