From 3c5b15cf2694606e966154935ab6979fdff7ce4d Mon Sep 17 00:00:00 2001 From: PatrikLundell Date: Wed, 13 Nov 2024 12:00:11 +0100 Subject: [PATCH] Ensure crushed characters are fetched from the correct location --- src/map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map.cpp b/src/map.cpp index 706ea665cc251..8f230528c679e 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -4622,7 +4622,7 @@ void map::batter( const tripoint_bub_ms &p, int power, int tries, const bool sil void map::crush( const tripoint_bub_ms &p ) { creature_tracker &creatures = get_creature_tracker(); - Character *crushed_player = creatures.creature_at( p ); + Character *crushed_player = creatures.creature_at( this->getglobal( p ) ); if( crushed_player != nullptr ) { bool player_inside = false;