From 75aa3598559678f7224b3cd470241fdcdc8539aa Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 3 Apr 2020 00:28:12 -0400 Subject: [PATCH] CActorModelParticles: Use static_cast instead of reinterpret_cast in PointGenerator() Casting from void* to a concrete type is permitted with static_cast. --- Runtime/World/CActorModelParticles.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/World/CActorModelParticles.cpp b/Runtime/World/CActorModelParticles.cpp index ef9c22117..fc2d17678 100644 --- a/Runtime/World/CActorModelParticles.cpp +++ b/Runtime/World/CActorModelParticles.cpp @@ -519,7 +519,7 @@ void CActorModelParticles::Update(float dt, CStateManager& mgr) { void CActorModelParticles::PointGenerator(void* ctx, const std::vector>& vn) { - reinterpret_cast(ctx)->GeneratePoints(vn); + static_cast(ctx)->GeneratePoints(vn); } void CActorModelParticles::SetupHook(TUniqueId uid) {