From fe2924d50d874108be7d7587b30b3a13d7636464 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 5 Sep 2010 12:33:27 +0000 Subject: SCI: initialize members of the Object class when it's constructed svn-id: r52544 --- engines/sci/engine/segment.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engines/sci/engine') diff --git a/engines/sci/engine/segment.h b/engines/sci/engine/segment.h index c8cb4cd203..16ceb979f4 100644 --- a/engines/sci/engine/segment.h +++ b/engines/sci/engine/segment.h @@ -227,8 +227,12 @@ enum ObjectOffsets { class Object { public: Object() { - _flags = 0; _offset = getSciVersion() < SCI_VERSION_1_1 ? 0 : 5; + _flags = 0; + _baseObj = 0; + _baseVars = 0; + _baseMethod = 0; + _methodCount = 0; } ~Object() { } -- cgit v1.2.3