From 72e586a37897a729620de84ccc18efd21bb79551 Mon Sep 17 00:00:00 2001 From: steph-pg Date: Mon, 13 Oct 2025 17:25:17 +0100 Subject: [PATCH] Move visibility check after already included pCorpse check --- Tactical/Rotting Corpses.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Tactical/Rotting Corpses.cpp b/Tactical/Rotting Corpses.cpp index 34714574..c8784bdc 100644 --- a/Tactical/Rotting Corpses.cpp +++ b/Tactical/Rotting Corpses.cpp @@ -2527,14 +2527,6 @@ void LookForAndMayCommentOnSeeingCorpse( SOLDIERTYPE *pSoldier, INT32 sGridNo, U INT8 bToleranceThreshold = 0; SOLDIERTYPE *pTeamSoldier; - pCorpse = GetCorpseAtGridNo(sGridNo, ubLevel); - if (pCorpse == NULL) - { - return; - } - - if (pCorpse->fActivated && pCorpse->def.bVisible != 1) - pCorpse->def.bVisible = 1; if ( QuoteExp[ pSoldier->ubProfile ].QuoteExpHeadShotOnly == 1 ) { @@ -2548,6 +2540,9 @@ void LookForAndMayCommentOnSeeingCorpse( SOLDIERTYPE *pSoldier, INT32 sGridNo, U return; } + if (pCorpse->fActivated && pCorpse->def.bVisible != 1) + pCorpse->def.bVisible = 1; + if ( pCorpse->def.ubType != ROTTING_STAGE2 ) { return;