From ffb9279479252ce9ab018301d7d1f7cad7034979 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 25 Nov 2013 16:36:11 +0000 Subject: [PATCH] (svn r26112) -Fix: make sure a vehicle list is always initialised --- src/vehiclelist.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/vehiclelist.h b/src/vehiclelist.h index 73c3de6b78..d09f196829 100644 --- 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. */