Physics2D/PhysWorld2D: Fix crash with physics callbacks
This commit is contained in:
parent
d68cb35056
commit
096ea72fb6
|
|
@ -72,7 +72,7 @@ namespace Nz
|
|||
{
|
||||
auto it = m_callbacks.emplace(handler, std::make_unique<Callback>(callbacks)).first;
|
||||
|
||||
handler->userData = &it->second;
|
||||
handler->userData = it->second.get();
|
||||
|
||||
if (callbacks.startCallback)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue