mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 15:07:43 +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:
@@ -242,7 +242,7 @@ void CScriptTrigger::Touch(CActor& act, CStateManager& mgr) {
|
||||
}
|
||||
|
||||
if (True(testFlags & x12c_flags)) {
|
||||
xe8_inhabitants.push_back(act.GetUniqueId());
|
||||
xe8_inhabitants.emplace_back(act.GetUniqueId());
|
||||
InhabitantAdded(act, mgr);
|
||||
|
||||
if (pl) {
|
||||
|
||||
Reference in New Issue
Block a user