[Scummvm-cvs-logs] SF.net SVN: scummvm:[52544] scummvm/trunk/engines/sci/engine/segment.h

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sun Sep 5 14:33:27 CEST 2010


Revision: 52544
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52544&view=rev
Author:   thebluegr
Date:     2010-09-05 12:33:27 +0000 (Sun, 05 Sep 2010)

Log Message:
-----------
SCI: initialize members of the Object class when it's constructed

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/segment.h

Modified: scummvm/trunk/engines/sci/engine/segment.h
===================================================================
--- scummvm/trunk/engines/sci/engine/segment.h	2010-09-05 11:30:40 UTC (rev 52543)
+++ scummvm/trunk/engines/sci/engine/segment.h	2010-09-05 12:33:27 UTC (rev 52544)
@@ -227,8 +227,12 @@
 class Object {
 public:
 	Object() {
+		_offset = getSciVersion() < SCI_VERSION_1_1 ? 0 : 5;
 		_flags = 0;
-		_offset = getSciVersion() < SCI_VERSION_1_1 ? 0 : 5;
+		_baseObj = 0;
+		_baseVars = 0;
+		_baseMethod = 0;
+		_methodCount = 0;
 	}
 
 	~Object() { }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list