fix: get entity from manager vs from character (#1833)

fixes a possible crash due to null entity
This commit is contained in:
David Markowitz
2025-06-26 04:04:05 -07:00
committed by GitHub
parent ec9927acbb
commit ecbb465020
2 changed files with 2 additions and 1 deletions

View File

@@ -167,6 +167,7 @@ Entity::~Entity() {
if (m_Character) {
m_Character->SaveXMLToDatabase();
m_Character->SetEntity(nullptr);
}
CancelAllTimers();