forked from teamnwah/openmw-tes3coop
Fix exception moving a disabled object between cells
This commit is contained in:
parent
c63ab673e1
commit
01e32aef79
1 changed files with 2 additions and 0 deletions
|
@ -297,6 +297,8 @@ void RenderingManager::rotateObject(const MWWorld::Ptr &ptr)
|
||||||
void
|
void
|
||||||
RenderingManager::updateObjectCell(const MWWorld::Ptr &old, const MWWorld::Ptr &cur)
|
RenderingManager::updateObjectCell(const MWWorld::Ptr &old, const MWWorld::Ptr &cur)
|
||||||
{
|
{
|
||||||
|
if (!old.getRefData().getBaseNode())
|
||||||
|
return;
|
||||||
Ogre::SceneNode *child =
|
Ogre::SceneNode *child =
|
||||||
mRendering.getScene()->getSceneNode(old.getRefData().getHandle());
|
mRendering.getScene()->getSceneNode(old.getRefData().getHandle());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue