From 68f969282e646b3fde7797a91beb3e38701564a6 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 3 Oct 2011 17:21:41 +0000 Subject: (svn r22978) -Codechange: Replace IncreaseGroupNumVehicle() and DecreaseGroupNumVehicle() with GroupStatistics::CountVehicle(). --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vehicle.cpp') diff --git a/src/vehicle.cpp b/src/vehicle.cpp index c6539ef67..731c31395 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -698,7 +698,7 @@ void Vehicle::PreDestructor() DeleteGroupHighlightOfVehicle(this); if (Group::IsValidID(this->group_id)) Group::Get(this->group_id)->statistics.num_engines[this->engine_type]--; - if (this->IsPrimaryVehicle()) DecreaseGroupNumVehicle(this->group_id); + if (this->IsPrimaryVehicle()) GroupStatistics::CountVehicle(this, -1); } if (this->type == VEH_AIRCRAFT && this->IsPrimaryVehicle()) { -- cgit v1.2.3-70-g09d2