Fixed a bot crash

This commit is contained in:
neckkola
2022-01-25 19:06:38 -04:00
parent 3098acdc95
commit cf2c7060be
2 changed files with 7 additions and 2 deletions
+3 -2
View File
@@ -5036,10 +5036,11 @@ bool Bot::Death(Mob *killerMob, int32 damage, uint16 spell_id, EQ::skills::Skill
}
Raid* raid = entity_list.GetRaidByBotName(this->GetName());
uint32 gid = raid->GetGroup(this->GetName());
if (raid)
{
for (int x = 0; x < MAX_RAID_MEMBERS; x++)
for (int x = 0; x < MAX_RAID_MEMBERS; x++)
{
if (strcmp(raid->members[x].membername, this->GetName()) == 0)
{
+4
View File
@@ -387,6 +387,7 @@ public:
static void ProcessRaidInvite(Bot* invitee, Client* invitor); //Mitch
static void ProcessRaidInvite(Client* invitee, Client* invitor); //Mitch
uint8 GetNumberNeedingHealedInRaidGroup(uint8 hpr, bool includePets); //Mitch
inline void SetDirtyAutoHaters() { m_dirtyautohaters = true; }
static std::list<BotSpell> GetBotSpellsForSpellEffect(Bot* botCaster, int spellEffect);
static std::list<BotSpell> GetBotSpellsForSpellEffectAndTargetType(Bot* botCaster, int spellEffect, SpellTargetType targetType);
@@ -736,6 +737,9 @@ private:
bool SavePet(); // Save and depop bot pet if there is one
bool DeletePet();
//Raid Additions
bool m_dirtyautohaters;
public:
static uint8 spell_casting_chances[SPELL_TYPE_COUNT][PLAYER_CLASS_COUNT][EQ::constants::STANCE_TYPE_COUNT][cntHSND];
};