Make changes for simplified ObjectDB::get_instance() casting

This commit is contained in:
lawnjelly 2025-03-31 07:21:31 +01:00
parent 157f8805c2
commit a39897953d
15 changed files with 30 additions and 30 deletions

View file

@ -153,7 +153,7 @@ void _physics_interpolation_warning(const char *p_function, const char *p_file,
String node_name;
if (p_id != 0) {
if (ObjectDB::get_instance(p_id)) {
Node *node = Object::cast_to<Node>(ObjectDB::get_instance(p_id));
Node *node = ObjectDB::get_instance<Node>(p_id);
if (node && node->is_inside_tree()) {
node_name = "\"" + String(node->get_path()) + "\"";
} else {