mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-28 21:06:40 +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);
|
||||
if (!anim)
|
||||
return;
|
||||
mActors.insert(std::make_pair(ptr, new Actor(ptr, anim)));
|
||||
mActors.emplace(ptr, new Actor(ptr, anim));
|
||||
|
||||
CharacterController* ctrl = mActors[ptr]->getCharacterController();
|
||||
if (updateImmediately)
|
||||
|
|
Loading…
Reference in a new issue