mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Added/Fixed null pointer checks
This commit is contained in:
parent
53c0010932
commit
7a07895920
14 changed files with 39 additions and 47 deletions
|
@ -2087,7 +2087,7 @@ public:
|
|||
}
|
||||
|
||||
Node *another = node->get_node(path);
|
||||
if (!node) {
|
||||
if (!another) {
|
||||
r_error.error = Variant::CallError::CALL_ERROR_INVALID_METHOD;
|
||||
r_error_str = "Path does not lead Node!";
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue