aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2010-09-05 12:33:27 +0000
committerFilippos Karapetis2010-09-05 12:33:27 +0000
commitfe2924d50d874108be7d7587b30b3a13d7636464 (patch)
treea24434a519bb36b9c6b0b36d80dbb599b6e793bb
parentf17a9f9fb09d4eaac333514bae70e770c5378b76 (diff)
downloadscummvm-rg350-fe2924d50d874108be7d7587b30b3a13d7636464.tar.gz
scummvm-rg350-fe2924d50d874108be7d7587b30b3a13d7636464.tar.bz2
scummvm-rg350-fe2924d50d874108be7d7587b30b3a13d7636464.zip
SCI: initialize members of the Object class when it's constructed
svn-id: r52544
-rw-r--r--engines/sci/engine/segment.h6
1 files changed, 5 insertions, 1 deletions
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() { }