summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-10-03 17:20:26 +0000
committerfrosch <frosch@openttd.org>2011-10-03 17:20:26 +0000
commitb6766c2ed5fa7e3cb703e1dcfdeacb26cde7d07e (patch)
treee488522e1e02e74e1b01223fde083e4223eb6c5c /src/vehicle.cpp
parent7133887ed66a55527037b2c314cf3dfb048e10cd (diff)
downloadopenttd-b6766c2ed5fa7e3cb703e1dcfdeacb26cde7d07e.tar.xz
(svn r22976) -Codechange: Split group statistics into separate struct.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index e9177f092..c6539ef67 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -697,7 +697,7 @@ void Vehicle::PreDestructor()
if (this->owner == _local_company) InvalidateAutoreplaceWindow(this->engine_type, this->group_id);
DeleteGroupHighlightOfVehicle(this);
- if (Group::IsValidID(this->group_id)) Group::Get(this->group_id)->num_engines[this->engine_type]--;
+ if (Group::IsValidID(this->group_id)) Group::Get(this->group_id)->statistics.num_engines[this->engine_type]--;
if (this->IsPrimaryVehicle()) DecreaseGroupNumVehicle(this->group_id);
}