mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user