aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage
diff options
context:
space:
mode:
authorPaul Gilbert2011-02-16 00:35:47 +1100
committerPaul Gilbert2011-02-16 00:35:47 +1100
commitfb86bbff332f461a80ad632e8dcce424059c20c0 (patch)
tree5ce66902391cfc3dc092e600c9573f101a4d7687 /engines/tsage
parentacc8e6319aa8ac031ccb964ef1d3881d0ad9d225 (diff)
downloadscummvm-rg350-fb86bbff332f461a80ad632e8dcce424059c20c0.tar.gz
scummvm-rg350-fb86bbff332f461a80ad632e8dcce424059c20c0.tar.bz2
scummvm-rg350-fb86bbff332f461a80ad632e8dcce424059c20c0.zip
TSAGE: Replaced some old delete's with proper calls to remove() method
Diffstat (limited to 'engines/tsage')
-rw-r--r--engines/tsage/core.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp
index aa673d0584..44af22371a 100644
--- a/engines/tsage/core.cpp
+++ b/engines/tsage/core.cpp
@@ -1727,7 +1727,7 @@ void SceneObject::setVisage(int visage) {
void SceneObject::setObjectWrapper(SceneObjectWrapper *objWrapper) {
if (_objectWrapper)
- delete _objectWrapper;
+ _objectWrapper->remove();
_objectWrapper = objWrapper;
if (objWrapper)
objWrapper->setSceneObject(this);
@@ -1735,7 +1735,7 @@ void SceneObject::setObjectWrapper(SceneObjectWrapper *objWrapper) {
void SceneObject::addMover(ObjectMover *mover, ...) {
if (_mover)
- delete _mover;
+ _mover->remove();
_mover = mover;
if (mover) {