Skip to content
Snippets Groups Projects
Commit 615ea70e authored by Jonathan Kunstwald's avatar Jonathan Kunstwald
Browse files

Fix user data reinterpret cast

parent 9ae58fad
Branches
Tags
No related merge requests found
......@@ -32,7 +32,7 @@ std::optional<uint32_t> flock::PhysicsEngine::castRay(const glm::vec3 &origin, c
if (hitRange)
*hitRange = raycast.impactDistance;
auto ent = reinterpret_cast<uint32_t>(raycast.impactBody->GetUserData());
auto ent = static_cast<uint32_t>(reinterpret_cast<unsigned long>(raycast.impactBody->GetUserData()));
return {ent};
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment