mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:47:42 +00:00
CParticleDatabase: Simplify insert into emplace call
Same behavior, but much more succinct and constructs the std::string in place.
This commit is contained in:
@@ -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) {
|
if ((flags & 0x60) != 0) {
|
||||||
xb4_25_anySystemsDrawnWithModel = true;
|
xb4_25_anySystemsDrawnWithModel = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user