summaryrefslogtreecommitdiff
path: root/src/newgrf_commons.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-23 18:11:22 +0000
committerrubidium <rubidium@openttd.org>2013-11-23 18:11:22 +0000
commit729d64d8d95a1f4fe37ff2f94e4e5aa05fb405f9 (patch)
tree70d09c1846142f31fe5f91a0e25e5d0331c25253 /src/newgrf_commons.h
parent1b9e32664f4b73fc61fe9f20fb9f184743fc1b06 (diff)
downloadopenttd-729d64d8d95a1f4fe37ff2f94e4e5aa05fb405f9.tar.xz
(svn r26071) -Fix: always initialise GRFFileProps
Diffstat (limited to 'src/newgrf_commons.h')
-rw-r--r--src/newgrf_commons.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/newgrf_commons.h b/src/newgrf_commons.h
index de4d292d7..3e8434748 100644
--- a/src/newgrf_commons.h
+++ b/src/newgrf_commons.h
@@ -324,13 +324,11 @@ struct GRFFilePropsBase {
/** Data related to the handling of grf files. */
struct GRFFileProps : GRFFilePropsBase<1> {
/** Set all default data constructor for the props. */
- GRFFileProps(uint16 subst_id) :
+ GRFFileProps(uint16 subst_id = 0) :
GRFFilePropsBase<1>(), subst_id(subst_id), override(subst_id)
{
}
- /** Simple constructor for the props. */
- GRFFileProps() : GRFFilePropsBase<1>() {}
uint16 subst_id;
uint16 override; ///< id of the entity been replaced by
};