Fix updatePtr

This commit is contained in:
scrawl 2017-02-22 21:02:34 +01:00
parent 00d4fea91c
commit d163228199

View file

@ -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<Animation> anim = iter->second;
mObjects.erase(iter);
anim->updatePtr(cur);
mObjects[cur] = anim;