Take most recent corpse from tile

Fixes crash when taking a corpse on roof when multiple corpses are stacked on one tile.
This commit is contained in:
Asdow
2026-05-06 11:28:11 +03:00
parent 09197e421c
commit 5697acabb3
+2 -2
View File
@@ -1770,10 +1770,10 @@ BOOLEAN IsValidDecapitationCorpse( ROTTING_CORPSE *pCorpse )
ROTTING_CORPSE *GetCorpseAtGridNo( INT32 sGridNo, INT8 bLevel )
{
STRUCTURE *pStructure, *pBaseStructure;
STRUCTURE *pStructure, *pBaseStructure;
INT32 sBaseGridNo;
pStructure = FindStructure( sGridNo, STRUCTURE_CORPSE );
pStructure = FindLastStructure( sGridNo, STRUCTURE_CORPSE );
if ( pStructure != NULL )
{