From 08a8c3a773e9c730bd92a39e1e07403a172e866a Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 7 Jul 2012 15:39:46 +0000 Subject: (svn r24384) -Fix [FS#5188-ish]: Make IsInDepot() functions behave consistent across vehicle types and add IsChainInDepot instead, if that is what shall be checked. --- src/script/api/script_vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script') diff --git a/src/script/api/script_vehicle.cpp b/src/script/api/script_vehicle.cpp index c4c6ca590..639b42f4b 100644 --- a/src/script/api/script_vehicle.cpp +++ b/src/script/api/script_vehicle.cpp @@ -182,7 +182,7 @@ /* static */ bool ScriptVehicle::IsInDepot(VehicleID vehicle_id) { if (!IsValidVehicle(vehicle_id)) return false; - return ::Vehicle::Get(vehicle_id)->IsInDepot(); + return ::Vehicle::Get(vehicle_id)->IsChainInDepot(); } /* static */ bool ScriptVehicle::IsStoppedInDepot(VehicleID vehicle_id) -- cgit v1.2.3-54-g00ecf