[Scummvm-cvs-logs] SF.net SVN: scummvm: [22810] scummvm/trunk/engines/gob/goblin.cpp
anotherguest at users.sourceforge.net
anotherguest at users.sourceforge.net
Wed May 31 13:20:02 CEST 2006
Revision: 22810
Author: anotherguest
Date: 2006-05-31 13:19:03 -0700 (Wed, 31 May 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22810&view=rev
Log Message:
-----------
Fixed deletion statement as it was deleting arrays(CW compiler was complaining).
Modified Paths:
--------------
scummvm/trunk/engines/gob/goblin.cpp
Modified: scummvm/trunk/engines/gob/goblin.cpp
===================================================================
--- scummvm/trunk/engines/gob/goblin.cpp 2006-05-31 20:05:31 UTC (rev 22809)
+++ scummvm/trunk/engines/gob/goblin.cpp 2006-05-31 20:19:03 UTC (rev 22810)
@@ -174,7 +174,7 @@
for (col = 0; col < 6; col++)
if (_goblins[i]->stateMach[state][col])
delete _goblins[i]->stateMach[state][col];
- delete _goblins[i]->stateMach;
+ delete []_goblins[i]->stateMach;
}
delete _goblins[i];
}
@@ -186,7 +186,7 @@
for (col = 0; col < 6; col++)
if (_objects[i]->stateMach[state][col])
delete _objects[i]->stateMach[state][col];
- delete _objects[i]->stateMach;
+ delete []_objects[i]->stateMach;
}
delete _objects[i];
}
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