diff --git a/src/Nazara/Physics2D/PhysWorld2D.cpp b/src/Nazara/Physics2D/PhysWorld2D.cpp index dc2d721b0..5bea6e163 100644 --- a/src/Nazara/Physics2D/PhysWorld2D.cpp +++ b/src/Nazara/Physics2D/PhysWorld2D.cpp @@ -205,7 +205,7 @@ namespace Nz void PhysWorld2D::RaycastQuery(const Vector2f& from, const Vector2f& to, float radius, UInt32 collisionGroup, UInt32 categoryMask, UInt32 collisionMask, const FunctionRef& callback) { - using CallbackType = const std::function; + using CallbackType = std::remove_reference_t; auto cpCallback = [](cpShape* shape, cpVect point, cpVect normal, cpFloat alpha, void* data) { @@ -280,7 +280,7 @@ namespace Nz void PhysWorld2D::RegionQuery(const Rectf& boundingBox, UInt32 collisionGroup, UInt32 categoryMask, UInt32 collisionMask, const FunctionRef& callback) { - using CallbackType = const std::function; + using CallbackType = std::remove_reference_t; auto cpCallback = [](cpShape* shape, void* data) {