diff --git a/voxel.cpp b/voxel.cpp index 1c8a245..5ab888b 100644 --- a/voxel.cpp +++ b/voxel.cpp @@ -166,7 +166,7 @@ void Voxel::set_library(Ref lib) { VoxelLibrary *Voxel::get_library() const { Object *v = _library.get_ref(); if (v) - return v->cast_to(); + return Object::cast_to(v); return NULL; } diff --git a/voxel_terrain.cpp b/voxel_terrain.cpp index 697dabc..417e31e 100644 --- a/voxel_terrain.cpp +++ b/voxel_terrain.cpp @@ -122,7 +122,7 @@ Spatial *VoxelTerrain::get_viewer(NodePath path) const { Node *node = get_node(path); if (node == NULL) return NULL; - return node->cast_to(); + return Object::cast_to(node); } void VoxelTerrain::set_material(int id, Ref material) {