From 72cd855978bf45fd444eae72551a12e13a35b0c8 Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 1 Nov 2011 00:21:08 +0000 Subject: (svn r23074) -Codechange: Add Vehicle::GetEngine() to simplify code. --- src/saveload/vehicle_sl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/saveload') 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; -- cgit v1.2.3-70-g09d2