diff options
author | rubidium <rubidium@openttd.org> | 2013-11-25 16:36:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-11-25 16:36:11 +0000 |
commit | ffb9279479252ce9ab018301d7d1f7cad7034979 (patch) | |
tree | 6258c5903c40a82089d6d7313859c93aabbf4983 | |
parent | b53da6a6f58bf47b7d1c69de516857bad42fae67 (diff) | |
download | openttd-ffb9279479252ce9ab018301d7d1f7cad7034979.tar.xz |
(svn r26112) -Fix: make sure a vehicle list is always initialised
-rw-r--r-- | src/vehiclelist.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/vehiclelist.h b/src/vehiclelist.h index 73c3de6b7..d09f19682 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. */ |