You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
[Editor] Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable
This commit is contained in:
@@ -2376,7 +2376,7 @@ bool ScriptEditor::edit(const Ref<Resource> &p_resource, int p_line, int p_col,
|
||||
break;
|
||||
}
|
||||
}
|
||||
ERR_FAIL_COND_V(!se, false);
|
||||
ERR_FAIL_NULL_V(se, false);
|
||||
|
||||
se->set_edited_resource(p_resource);
|
||||
|
||||
@@ -2695,7 +2695,7 @@ void ScriptEditor::_editor_stop() {
|
||||
}
|
||||
|
||||
void ScriptEditor::_add_callback(Object *p_obj, const String &p_function, const PackedStringArray &p_args) {
|
||||
ERR_FAIL_COND(!p_obj);
|
||||
ERR_FAIL_NULL(p_obj);
|
||||
Ref<Script> scr = p_obj->get_script();
|
||||
ERR_FAIL_COND(!scr.is_valid());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user