diff options
author | Paul Gilbert | 2011-02-16 00:35:47 +1100 |
---|---|---|
committer | Paul Gilbert | 2011-02-16 00:35:47 +1100 |
commit | fb86bbff332f461a80ad632e8dcce424059c20c0 (patch) | |
tree | 5ce66902391cfc3dc092e600c9573f101a4d7687 /engines/tsage | |
parent | acc8e6319aa8ac031ccb964ef1d3881d0ad9d225 (diff) | |
download | scummvm-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.cpp | 4 |
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) { |