Fixed issues with /reload spells causing a crash
This commit is contained in:
parent
d215872bdf
commit
e20b45eedd
@ -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__);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user