mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 05:53:02 +01:00
Refactor to use push_back more efficient (#13726)
This commit is contained in:
@@ -150,11 +150,10 @@ namespace OpenRCT2::Scripting
|
||||
} while (!(el++)->IsLastForTile());
|
||||
}
|
||||
}
|
||||
auto eventArgs = obj.Take();
|
||||
|
||||
auto& scriptEngine = GetContext()->GetScriptEngine();
|
||||
std::vector<DukValue> args;
|
||||
args.push_back(eventArgs);
|
||||
args.emplace_back(obj.Take());
|
||||
scriptEngine.ExecutePluginCall(Owner, dukHandler, args, false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user