Skip to content

Commit

Permalink
fix crash after freeing cell mmi
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtarsia committed Oct 13, 2024
1 parent ed06faf commit fd9d574
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/terrain_3d_instancer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ void Terrain3DInstancer::remove_instances(const Vector3 &p_global_position, cons
MultiMeshInstance3D *mmi = cast_to<MultiMeshInstance3D>(mesh_mmis[cell]);
remove_from_tree(mmi);
memdelete_safely(mmi);
mesh_mmis.erase(cell);
}
cells_dict.erase(cell);
}
Expand Down

0 comments on commit fd9d574

Please sign in to comment.