From c07c909a5724b9e6a3869159e303c3961e68c5c1 Mon Sep 17 00:00:00 2001 From: jadebenn Date: Thu, 21 Dec 2023 22:12:52 -0600 Subject: [PATCH] fix: Character access after deletion (#1348) * assorted skill debug plus crash fix * removed uncleaned debug --- dGame/Player.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dGame/Player.cpp b/dGame/Player.cpp index f2917729..abbbf059 100644 --- a/dGame/Player.cpp +++ b/dGame/Player.cpp @@ -60,6 +60,8 @@ void Player::SetSystemAddress(const SystemAddress& value) { } void Player::SetRespawnPos(const NiPoint3 position) { + if (!m_Character) return; + m_respawnPos = position; m_Character->SetRespawnPoint(Game::zoneManager->GetZone()->GetWorldID(), position);