2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:47:42 +00:00

General: Make use of emplace_back where applicable

Allows for in-place construction. Also results in less code to read in
certain usages.
This commit is contained in:
Lioncash
2020-03-21 00:12:13 -04:00
parent 36ac0a8d78
commit fc4df76afc
13 changed files with 38 additions and 33 deletions

View File

@@ -254,7 +254,7 @@ void CScriptSpecialFunction::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId
auto search = mgr.GetIdListForScript(conn.x8_objId);
for (auto it = search.first; it != search.second; ++it) {
if (TCastToPtr<CActor> act = mgr.ObjectById(it->second)) {
x198_ringControllers.push_back(SRingController(it->second, 0.f, false));
x198_ringControllers.emplace_back(it->second, 0.f, false);
act->RemoveMaterial(EMaterialTypes::Occluder, mgr);
}
}