fix: Character access after deletion (#1348)

* assorted skill debug plus crash fix

* removed uncleaned debug
This commit is contained in:
jadebenn
2023-12-21 22:12:52 -06:00
committed by GitHub
parent 42ffd00478
commit c07c909a57

View File

@@ -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);