mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05: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