diff options
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) { |