mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix crash when calling get_argument_count() on invalid Callable
https://github.com/godotengine/godot/issues/103438
This commit is contained in:
parent
15ff450680
commit
7bc030172e
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ int Callable::get_argument_count(bool *r_is_valid) const {
|
|||
if (is_custom()) {
|
||||
bool valid = false;
|
||||
return custom->get_argument_count(r_is_valid ? *r_is_valid : valid);
|
||||
} else if (!is_null()) {
|
||||
} else if (is_valid()) {
|
||||
return get_object()->get_method_argument_count(method, r_is_valid);
|
||||
} else {
|
||||
if (r_is_valid) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue