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)
{