mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-30 03:32:36 +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);
|
PtrAnimationMap::iterator iter = mObjects.find(old);
|
||||||
if(iter != mObjects.end())
|
if(iter != mObjects.end())
|
||||||
{
|
{
|
||||||
Animation *anim = iter->second;
|
osg::ref_ptr<Animation> anim = iter->second;
|
||||||
mObjects.erase(iter);
|
mObjects.erase(iter);
|
||||||
anim->updatePtr(cur);
|
anim->updatePtr(cur);
|
||||||
mObjects[cur] = anim;
|
mObjects[cur] = anim;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user