mirror of https://github.com/AxioDL/metaforce.git
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:
parent
a80838b2df
commit
75aa359855
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue