mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-15 14:42:35 +00:00
Merge branch 'emp' into 'master'
Use an emplace instead of an insert See merge request OpenMW/openmw!1144
This commit is contained in:
commit
873e16ae93
@ -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…
x
Reference in New Issue
Block a user