You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Mono: Fix null dereferences
This commit is contained in:
@@ -2040,6 +2040,9 @@ void CSharpScript::set_source_code(const String &p_code) {
|
||||
|
||||
bool CSharpScript::has_method(const StringName &p_method) const {
|
||||
|
||||
if (!script_class)
|
||||
return false;
|
||||
|
||||
return script_class->has_fetched_method_unknown_params(p_method);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user