mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-14 16:06:10 +00:00
General: Make use of static_cast within point generators
The more restrictive static_cast is permissable when casting from void*.
This commit is contained in:
@@ -1539,7 +1539,7 @@ void CMorphBall::PreRender(CStateManager& mgr, const zeus::CFrustum& frustum) {
|
||||
}
|
||||
|
||||
void CMorphBall::PointGenerator(void* ctx, const std::vector<std::pair<zeus::CVector3f, zeus::CVector3f>>& vn) {
|
||||
reinterpret_cast<CRainSplashGenerator*>(ctx)->GeneratePoints(vn);
|
||||
static_cast<CRainSplashGenerator*>(ctx)->GeneratePoints(vn);
|
||||
}
|
||||
|
||||
void CMorphBall::Render(const CStateManager& mgr, const CActorLights* lights) const {
|
||||
|
||||
Reference in New Issue
Block a user