mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-09-05 23:08:31 +00:00
fix: get entity from manager vs from character (#1833)
fixes a possible crash due to null entity
This commit is contained in:
@@ -167,6 +167,7 @@ Entity::~Entity() {
|
||||
|
||||
if (m_Character) {
|
||||
m_Character->SaveXMLToDatabase();
|
||||
m_Character->SetEntity(nullptr);
|
||||
}
|
||||
|
||||
CancelAllTimers();
|
||||
|
Reference in New Issue
Block a user