Added/Fixed null pointer checks

This commit is contained in:
Wilson E. Alvarez 2017-08-25 11:14:33 -04:00
parent 53c0010932
commit 7a07895920
14 changed files with 39 additions and 47 deletions

View file

@ -535,7 +535,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;