1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 09:23:53 +00:00

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
RenderingManager::updateObjectCell(const MWWorld::Ptr &old, const MWWorld::Ptr &cur)
{
if (!old.getRefData().getBaseNode())
return;
Ogre::SceneNode *child =
mRendering.getScene()->getSceneNode(old.getRefData().getHandle());