summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 030b3ca8a..814f14e40 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -386,7 +386,7 @@ void SetCachedEngineCounts()
const Vehicle *v;
FOR_ALL_VEHICLES(v) {
- if (!IsEngineCountable(v)) continue;
+ if (!v->IsEngineCountable()) continue;
assert(v->engine_type < engines);