Skip to content

Commit 88c2fe9

Browse files
committed
[collision] Fix implicit lambda capture which is deprecated in C++20
1 parent 0340fae commit 88c2fe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vulkan-renderer/world/collision.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RayCubeCollision<T>::RayCubeCollision(const T &cube, const glm::vec3 ray_pos, co
2525

2626
// This lambda adjusts the center points on a cube's face to the size of the octree,
2727
// so collision works with cubes of any size. This does not yet account for rotations!
28-
const auto adjust_coordinates = [=](const glm::vec3 pos) {
28+
const auto adjust_coordinates = [&](const glm::vec3 pos) {
2929
// TODO: Take rotation of the cube into account.
3030
return m_cube.center() + pos * (m_cube.size() / 2);
3131
};

0 commit comments

Comments
 (0)