mirror of https://github.com/AxioDL/metaforce.git
CParticleDatabase: Simplify insert into emplace call
Same behavior, but much more succinct and constructs the std::string in place.
This commit is contained in:
parent
87437881a0
commit
d66f534a8c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue