From ce351420e50ad255a2c47fc3f33bac497c11d0d5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 8 Sep 2021 00:01:41 +0200 Subject: [PATCH] - fixed null pointer access in nnExtProcessSuperSprites --- source/games/blood/src/nnexts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/games/blood/src/nnexts.cpp b/source/games/blood/src/nnexts.cpp index 297ccf19848..d90a86af92d 100644 --- a/source/games/blood/src/nnexts.cpp +++ b/source/games/blood/src/nnexts.cpp @@ -1380,9 +1380,9 @@ void nnExtProcessSuperSprites() PLAYER* pPlayer = NULL; for (int a = connecthead; a != -1; a = connectpoint2[a]) { - auto pact = pPlayer->actor; pPlayer = &gPlayer[a]; - if (pact->hit.hit.type == kHitSprite && pact->hit.hit.actor == debrisactor) + auto pact = pPlayer->actor; + if (pact->hit.hit.type == kHitSprite && pact->hit.hit.actor == debrisactor) { int nSpeed = approxDist(pact->xvel, pact->yvel); nSpeed = ClipLow(nSpeed - MulScale(nSpeed, mass, 6), 0x9000 - (mass << 3));