Fix exception moving a disabled object between cells

This commit is contained in:
scrawl 2015-02-08 14:34:31 +01:00
parent c63ab673e1
commit 01e32aef79

View file

@ -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());