From 9e000c662b8645257f2fbd66c072ea54ee7786bb Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 22 May 2009 23:22:13 +0000 Subject: Better safe than sorry, add an explicit default constructor for Button. svn-id: r40797 --- engines/kyra/gui.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/kyra/gui.h') diff --git a/engines/kyra/gui.h b/engines/kyra/gui.h index 20266276ce..f83620c8f9 100644 --- a/engines/kyra/gui.h +++ b/engines/kyra/gui.h @@ -43,6 +43,11 @@ struct Button { typedef Common::Functor1 CallbackFunctor; typedef Common::SharedPtr Callback; + Button() : nextButton(0), index(0), keyCode(0), keyCode2(0), data0Val1(0), data1Val1(0), data2Val1(0), flags(0), + data0ShapePtr(0), data1ShapePtr(0), data2ShapePtr(0), data0Callback(), data1Callback(), data2Callback(), + dimTableIndex(0), x(0), y(0), width(0), height(0), data0Val2(0), data0Val3(0), data1Val2(0), data1Val3(0), + data2Val2(0), data2Val3(0), flags2(0), mouseWheel(0), buttonCallback(), arg(0) {} + Button *nextButton; uint16 index; -- cgit v1.2.3