From 729d64d8d95a1f4fe37ff2f94e4e5aa05fb405f9 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 23 Nov 2013 18:11:22 +0000 Subject: (svn r26071) -Fix: always initialise GRFFileProps --- src/newgrf_commons.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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 }; -- cgit v1.2.3-54-g00ecf