From d16322819984ebb81ca386c0e8f7e1cd05c6bd7f Mon Sep 17 00:00:00 2001 From: scrawl Date: Wed, 22 Feb 2017 21:02:34 +0100 Subject: [PATCH] Fix updatePtr --- apps/openmw/mwrender/objects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwrender/objects.cpp b/apps/openmw/mwrender/objects.cpp index 3b9317ea9..ab627b6f6 100644 --- a/apps/openmw/mwrender/objects.cpp +++ b/apps/openmw/mwrender/objects.cpp @@ -202,7 +202,7 @@ void Objects::updatePtr(const MWWorld::Ptr &old, const MWWorld::Ptr &cur) PtrAnimationMap::iterator iter = mObjects.find(old); if(iter != mObjects.end()) { - Animation *anim = iter->second; + osg::ref_ptr anim = iter->second; mObjects.erase(iter); anim->updatePtr(cur); mObjects[cur] = anim;