mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +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
|
@ -822,7 +822,7 @@ public:
|
|||
}
|
||||
|
||||
Node *another = node->get_node(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;
|
||||
|
@ -1596,7 +1596,7 @@ public:
|
|||
}
|
||||
|
||||
Node *another = node->get_node(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;
|
||||
|
@ -2241,7 +2241,7 @@ public:
|
|||
}
|
||||
|
||||
Node *another = node->get_node(node_path);
|
||||
if (!node) {
|
||||
if (!another) {
|
||||
r_error.error = Variant::CallError::CALL_ERROR_INVALID_METHOD;
|
||||
r_error_str = RTR("Path does not lead Node!");
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue