diff --git a/src/Nazara/Physics2D/PhysWorld2D.cpp b/src/Nazara/Physics2D/PhysWorld2D.cpp index 16ead3332..7c15beee3 100644 --- a/src/Nazara/Physics2D/PhysWorld2D.cpp +++ b/src/Nazara/Physics2D/PhysWorld2D.cpp @@ -72,7 +72,7 @@ namespace Nz { auto it = m_callbacks.emplace(handler, std::make_unique(callbacks)).first; - handler->userData = &it->second; + handler->userData = it->second.get(); if (callbacks.startCallback) {