summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-25 16:36:11 +0000
committerrubidium <rubidium@openttd.org>2013-11-25 16:36:11 +0000
commitffb9279479252ce9ab018301d7d1f7cad7034979 (patch)
tree6258c5903c40a82089d6d7313859c93aabbf4983 /src
parentb53da6a6f58bf47b7d1c69de516857bad42fae67 (diff)
downloadopenttd-ffb9279479252ce9ab018301d7d1f7cad7034979.tar.xz
(svn r26112) -Fix: make sure a vehicle list is always initialised
Diffstat (limited to 'src')
-rw-r--r--src/vehiclelist.h5
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. */