mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 06:27:43 +00:00
Runtime: Collapse emplace_back() calls where applicable
Same behavior, but with less code.
This commit is contained in:
@@ -36,8 +36,7 @@ CStateMachine::CStateMachine(CInputStream& in) {
|
||||
float arg = in.readFloatBig();
|
||||
CAiTrigger* newTrig;
|
||||
if (k < lastTriggerIdx) {
|
||||
x10_triggers.emplace_back();
|
||||
newTrig = &x10_triggers.back();
|
||||
newTrig = &x10_triggers.emplace_back();
|
||||
} else {
|
||||
newTrig = &firstTrig[j];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user