(svn r22981) -Add: GroupStatistics for the ALL_GROUP.

This commit is contained in:
frosch
2011-10-03 17:23:41 +00:00
parent 5be8f73204
commit dd74536bef
9 changed files with 19 additions and 23 deletions

View File

@@ -142,7 +142,6 @@ CommandCost CmdBuildVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
InvalidateAutoreplaceWindow(v->engine_type, v->group_id); // updates the auto replace window (must be called before incrementing num_engines)
}
Company::Get(_current_company)->num_engines[eid]++;
GroupStatistics::CountEngine(v, 1);
if (v->IsPrimaryVehicle()) {