1
0

Fixed issues with /reload spells causing a crash

This commit is contained in:
Emagi 2025-01-16 10:53:12 -05:00
parent d215872bdf
commit e20b45eedd

View File

@ -476,8 +476,10 @@ void ZoneServer::DeleteSpellProcess(){
if(spawn && spawn->IsNPC())
((NPC*)spawn)->SetSpells(0);
if(spawn->IsEntity())
if(spawn->IsEntity()) {
((Entity*)spawn)->RemoveSpellBonus(nullptr, true);
((Entity*)spawn)->DeleteSpellEffects(true);
}
}
MSpawnList.releasereadlock(__FUNCTION__, __LINE__);