# HG changeset patch # User rubidium # Date 2013-11-25 16:36:11 # Node ID e58adc4381448b30c36818ad44dacd18705eea8f # Parent 52ba3c85974ac875855a7d63bd351e76176f62b8 (svn r26112) -Fix: make sure a vehicle list is always initialised diff --git a/src/vehiclelist.h b/src/vehiclelist.h --- a/src/vehiclelist.h +++ b/src/vehiclelist.h @@ -47,10 +47,7 @@ struct VehicleListIdentifier { VehicleListIdentifier(VehicleListType type, VehicleType vtype, CompanyID company, uint index = 0) : type(type), vtype(vtype), company(company), index(index) {} - VehicleListIdentifier(uint32 data); - - /** Simple empty constructor. In this case you must set everything! */ - VehicleListIdentifier() {} + VehicleListIdentifier(uint32 data = 0); }; /** A list of vehicles. */