mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-02 03:06:41 +00:00
Use an emplace instead of an insert
This commit is contained in:
parent
7400050b38
commit
0792bb212a
1 changed files with 1 additions and 1 deletions
|
@ -1609,7 +1609,7 @@ namespace MWMechanics
|
||||||
MWRender::Animation *anim = MWBase::Environment::get().getWorld()->getAnimation(ptr);
|
MWRender::Animation *anim = MWBase::Environment::get().getWorld()->getAnimation(ptr);
|
||||||
if (!anim)
|
if (!anim)
|
||||||
return;
|
return;
|
||||||
mActors.insert(std::make_pair(ptr, new Actor(ptr, anim)));
|
mActors.emplace(ptr, new Actor(ptr, anim));
|
||||||
|
|
||||||
CharacterController* ctrl = mActors[ptr]->getCharacterController();
|
CharacterController* ctrl = mActors[ptr]->getCharacterController();
|
||||||
if (updateImmediately)
|
if (updateImmediately)
|
||||||
|
|
Loading…
Reference in a new issue