diff --git a/src/projectile_pool.cpp b/src/projectile_pool.cpp index b306741..170f404 100644 --- a/src/projectile_pool.cpp +++ b/src/projectile_pool.cpp @@ -19,9 +19,8 @@ void ProjectilePool::_exit_tree() { void ProjectilePool::set_data(Ref data) { if(!this->data.is_null()) { this->active.clear(); - for(Node3D *node : this->inactive) { + for(Node3D *node : this->inactive) node->queue_free(); - } } this->data = data; if(!data.is_valid())