You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Use initializer list in Arrays
This commit is contained in:
@@ -54,10 +54,7 @@
|
||||
#ifdef DEBUG_ENABLED
|
||||
_FORCE_INLINE_ void SceneRPCInterface::_profile_node_data(const String &p_what, ObjectID p_id, int p_size) {
|
||||
if (EngineDebugger::is_profiling("multiplayer:rpc")) {
|
||||
Array values;
|
||||
values.push_back(p_what);
|
||||
values.push_back(p_id);
|
||||
values.push_back(p_size);
|
||||
Array values = { p_what, p_id, p_size };
|
||||
EngineDebugger::profiler_add_frame_data("multiplayer:rpc", values);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user