mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 09:32:45 +00:00
Fix updatePtr
This commit is contained in:
parent
00d4fea91c
commit
d163228199
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user