mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 11:01:17 +00:00
Mono: Fix null dereferences
This commit is contained in:
parent
c0c795474e
commit
5aefe5d936
4 changed files with 20 additions and 9 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue