hatelist fixes to fixes to fixes

This commit is contained in:
SecretsOTheP 2014-04-22 13:37:35 -04:00
parent e726a82cc3
commit 6aa0c9d694
4 changed files with 4 additions and 4 deletions

View File

@ -223,7 +223,7 @@ Bot::~Bot() {
GetPet()->Depop();
entity_list.RemoveBot(GetID());
entity_list.RemoveFromTargets(GetID(), true);
entity_list.RemoveFromTargets(this, true);
}
void Bot::SetBotID(uint32 botID) {

View File

@ -427,7 +427,7 @@ Client::~Client() {
eqs->Close();
eqs->ReleaseFromUse();
//Moved this from ~Mob, because it could cause a crash in some cases where a hate list was still used and that mob was the only one on the hate list.
entity_list.RemoveFromTargets(GetID(), true);
entity_list.RemoveFromTargets(this, true);
UninitializeBuffSlots();
}

View File

@ -76,7 +76,7 @@ Merc::Merc(const NPCType* d, float x, float y, float z, float heading)
Merc::~Merc() {
AI_Stop();
entity_list.RemoveMerc(this->GetID());
entity_list.RemoveFromTargets(GetID(), true);
entity_list.RemoveFromTargets(this, true);
UninitializeBuffSlots();
}

View File

@ -393,7 +393,7 @@ NPC::~NPC()
safe_delete(swarmInfoPtr);
safe_delete(qGlobals);
//Moved this from ~Mob, because it could cause a crash in some cases where a hate list was still used and that mob was the only one on the hate list.
entity_list.RemoveFromTargets(GetID(), true);
entity_list.RemoveFromTargets(this, true);
UninitializeBuffSlots();
}