summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-11-01 00:21:08 +0000
committerfrosch <frosch@openttd.org>2011-11-01 00:21:08 +0000
commit72cd855978bf45fd444eae72551a12e13a35b0c8 (patch)
treeb7f4b3cc07022ba32160f5e67f4cb5a527266d12 /src/saveload
parentc366e0d45f87f9ba625ed73cbf5bff61d8483c5c (diff)
downloadopenttd-72cd855978bf45fd444eae72551a12e13a35b0c8.tar.xz
(svn r23074) -Codechange: Add Vehicle::GetEngine() to simplify code.
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/vehicle_sl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp
index 14827eb7b..f801e9988 100644
--- a/src/saveload/vehicle_sl.cpp
+++ b/src/saveload/vehicle_sl.cpp
@@ -226,7 +226,7 @@ static void CheckValidVehicles()
case VEH_ROAD:
case VEH_SHIP:
case VEH_AIRCRAFT:
- if (v->engine_type >= total_engines || v->type != Engine::Get(v->engine_type)->type) {
+ if (v->engine_type >= total_engines || v->type != v->GetEngine()->type) {
v->engine_type = first_engine[v->type];
}
break;