diff options
author | frosch <frosch@openttd.org> | 2011-10-03 17:21:41 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-10-03 17:21:41 +0000 |
commit | 68f969282e646b3fde7797a91beb3e38701564a6 (patch) | |
tree | 4232fd570a964de4cdd3967039034befc901e803 /src/vehicle.cpp | |
parent | b78a459613320d5c45052ece08de55a574104530 (diff) | |
download | openttd-68f969282e646b3fde7797a91beb3e38701564a6.tar.xz |
(svn r22978) -Codechange: Replace IncreaseGroupNumVehicle() and DecreaseGroupNumVehicle() with GroupStatistics::CountVehicle().
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()) { |