1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-25 20:02:40 +01:00

Replace insert with emplace

See:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87658
This commit is contained in:
Filip Gawin 2018-10-19 22:32:10 +02:00
parent 0ae2a836ca
commit 5b135a5689

View File

@ -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) {