You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Added/Fixed null pointer checks
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user