CParticleDatabase: Simplify insert into emplace call

Same behavior, but much more succinct and constructs the std::string in
place.
This commit is contained in:
Lioncash 2020-08-25 18:44:55 -04:00
parent 87437881a0
commit d66f534a8c
1 changed files with 1 additions and 1 deletions

View File

@ -441,7 +441,7 @@ void CParticleDatabase::InsertParticleGen(bool oneShot, int flags, std::string_v
}
}
useMap->insert(std::make_pair(std::string(name), std::move(gen)));
useMap->emplace(name, std::move(gen));
if ((flags & 0x60) != 0) {
xb4_25_anySystemsDrawnWithModel = true;