forked from mirror/openmw-tes3mp
Use the correct name for deleting objects.
This commit is contained in:
parent
b46df4034d
commit
8b0dc88db8
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ void CSVRender::Object::clearSceneNode (Ogre::SceneNode *node)
|
|||
|
||||
void CSVRender::Object::clear()
|
||||
{
|
||||
if(!mObject.isNull())
|
||||
CSVWorld::PhysicsSystem::instance()->removeObject(mBase->getName());
|
||||
if(!mObject.isNull() && !mReferenceId.empty())
|
||||
CSVWorld::PhysicsSystem::instance()->removeObject(mReferenceId);
|
||||
|
||||
mObject.setNull();
|
||||
|
||||
|
|
Loading…
Reference in a new issue