mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 03:12:36 +01:00
Replace insert with emplace
See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87658
This commit is contained in:
parent
0ae2a836ca
commit
5b135a5689
@ -882,8 +882,7 @@ void VehicleObject::registerPart(ModelFrame* mf) {
|
||||
Part part{mf, normal, damage, nullptr, nullptr, nullptr, false,
|
||||
0.f, 0.f, 0.f};
|
||||
|
||||
dynamicParts.insert({mf->getName(),
|
||||
std::move(part)});
|
||||
dynamicParts.emplace(mf->getName(), std::move(part));
|
||||
}
|
||||
|
||||
void VehicleObject::createObjectHinge(Part* part) {
|
||||
|
Loading…
Reference in New Issue
Block a user