CActorModelParticles: Use static_cast instead of reinterpret_cast in PointGenerator()

Casting from void* to a concrete type is permitted with static_cast.
This commit is contained in:
Lioncash 2020-04-03 00:28:12 -04:00
parent a80838b2df
commit 75aa359855
1 changed files with 1 additions and 1 deletions

View File

@ -519,7 +519,7 @@ void CActorModelParticles::Update(float dt, CStateManager& mgr) {
void CActorModelParticles::PointGenerator(void* ctx,
const std::vector<std::pair<zeus::CVector3f, zeus::CVector3f>>& vn) {
reinterpret_cast<CItem*>(ctx)->GeneratePoints(vn);
static_cast<CItem*>(ctx)->GeneratePoints(vn);
}
void CActorModelParticles::SetupHook(TUniqueId uid) {