mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-24 08:18:10 +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