*First remove object from world then unregister it. This may fix some crashes.
--HG-- branch : trunk
This commit is contained in:
1 parent
3c624f7c63
commit
eb894f39e8
5 files changed
+15
-12
No files matched your search
@@ -93,8 +93,8 @@ void GameObject::RemoveFromWorld()
|
||||
///- Remove the gameobject from the accessor
|
||||
if(IsInWorld())
|
||||
{
|
||||
ObjectAccessor::Instance().RemoveObject(this);
|
||||
WorldObject::RemoveFromWorld();
|
||||
ObjectAccessor::Instance().RemoveObject(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user