Core/Player: return player corpse locations by reference instead of creating copies

(cherry picked from commit d11d992df9e15503c321ffcce566f13923f51508)
This commit is contained in:
Ovahlord
2026-05-26 23:08:27 +02:00
committed by Shauren
parent a039174308
commit 970a3dec18
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -4335,8 +4335,7 @@ void Player::BuildPlayerRepop()
// there must be SMSG.STOP_MIRROR_TIMER
// the player cannot have a corpse already on current map, only bones which are not returned by GetCorpse
WorldLocation corpseLocation = GetCorpseLocation();
if (corpseLocation.GetMapId() == GetMapId())
if (GetCorpseLocation().GetMapId() == GetMapId())
{
TC_LOG_ERROR("entities.player", "Player::BuildPlayerRepop: Player '{}' ({}) already has a corpse", GetName(), GetGUID().ToString());
return;