mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 23:58:25 +00:00
bug tracing on entity list mismatch
This commit is contained in:
+4
-4
@@ -5048,10 +5048,10 @@ bool Bot::Death(Mob *killerMob, int32 damage, uint16 spell_id, EQ::skills::Skill
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
entity_list.RemoveBot(this->GetID());
|
||||
}
|
||||
// else
|
||||
// {
|
||||
entity_list.RemoveBot(this->GetID());
|
||||
// }
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
+2
-2
@@ -152,8 +152,8 @@ public:
|
||||
ExtraAttackOptions *opts = nullptr);
|
||||
virtual bool HasRaid() { return (GetRaid() ? true : false); }
|
||||
virtual bool HasGroup() { return (GetGroup() ? true : false); }
|
||||
virtual Raid* GetRaid() { return entity_list.GetRaidByMob(this); }
|
||||
virtual Group* GetGroup() { return entity_list.GetGroupByMob(this); }
|
||||
virtual Raid* GetRaid() { return entity_list.GetRaidByMob(this); } // GetRaidByMob(this);
|
||||
virtual Group* GetGroup() { return entity_list.GetGroupByMob(this); } // GetGroupByMob;
|
||||
|
||||
// Common, but informal "interfaces" with Client object
|
||||
uint32 CharacterID() { return GetBotID(); } // Just returns the Bot Id
|
||||
|
||||
+2
-1
@@ -3033,7 +3033,8 @@ void Mob::QuestJournalledSay(Client *QuestInitiator, const char *str, Journal::O
|
||||
const char *Mob::GetCleanName()
|
||||
{
|
||||
if (clean_name != NULL && !strlen(clean_name)) { //extra check added for crash condition. Mitch
|
||||
CleanMobName(GetName(), clean_name);
|
||||
if (this)
|
||||
CleanMobName(GetName(), clean_name);
|
||||
}
|
||||
|
||||
return clean_name;
|
||||
|
||||
Reference in New Issue
Block a user