You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Use initializer list in Arrays
This commit is contained in:
@@ -2697,8 +2697,7 @@ void GDScriptLanguage::reload_scripts(const Array &p_scripts, bool p_soft_reload
|
||||
}
|
||||
|
||||
void GDScriptLanguage::reload_tool_script(const Ref<Script> &p_script, bool p_soft_reload) {
|
||||
Array scripts;
|
||||
scripts.push_back(p_script);
|
||||
Array scripts = { p_script };
|
||||
reload_scripts(scripts, p_soft_reload);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user