[Scummvm-cvs-logs] SF.net SVN: scummvm: [26402] scummvm/trunk/engines/parallaction

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Sat Apr 7 14:04:28 CEST 2007


Revision: 26402
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26402&view=rev
Author:   peres001
Date:     2007-04-07 05:04:27 -0700 (Sat, 07 Apr 2007)

Log Message:
-----------
Added code for ~Command().

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/commands.cpp
    scummvm/trunk/engines/parallaction/commands.h

Modified: scummvm/trunk/engines/parallaction/commands.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/commands.cpp	2007-04-07 12:03:51 UTC (rev 26401)
+++ scummvm/trunk/engines/parallaction/commands.cpp	2007-04-07 12:04:27 UTC (rev 26402)
@@ -199,10 +199,7 @@
 
 	while (cmd) {
 		Command *v4 = (Command*)cmd->_next;
-
-		if (cmd->_id == CMD_LOCATION) free(cmd->u._string);
 		delete cmd;
-
 		cmd = v4;
 	}
 
@@ -348,6 +345,18 @@
 
 }
 
+Command::Command() {
+	_id = 0;
+	_flagsOn = 0;
+	_flagsOff = 0;
+}
+
+Command::~Command() {
+
+	if (_id == CMD_LOCATION) free(u._string);
+
+}
+
 } // namespace Parallaction
 
 

Modified: scummvm/trunk/engines/parallaction/commands.h
===================================================================
--- scummvm/trunk/engines/parallaction/commands.h	2007-04-07 12:03:51 UTC (rev 26401)
+++ scummvm/trunk/engines/parallaction/commands.h	2007-04-07 12:04:27 UTC (rev 26402)
@@ -68,15 +68,8 @@
 	uint32			_flagsOn;
 	uint32			_flagsOff;
 
-	Command() {
-		_id = 0;
-		_flagsOn = 0;
-		_flagsOff = 0;
-	}
-
-	~Command() {
-
-	}
+	Command();
+	~Command();
 };
 
 } // namespace Parallaction


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