[Cleanup] gid is assigned 2 values simultaneously in bot.cpp (#3234)

# Notes
- Unnecessarily assigning the value twice simultaneously.
This commit is contained in:
Alex King 2023-04-03 16:47:46 -04:00 committed by GitHub
parent 3d20c0d6aa
commit f484fe4176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7168,8 +7168,7 @@ bool EntityList::Bot_AICheckCloseBeneficialSpells(Bot* caster, uint8 iChance, fl
}
if (caster->IsRaidGrouped()) {
if (auto raid = entity_list.GetRaidByBotName(caster->GetName())) {
uint32 gid = RAID_GROUPLESS;
gid = raid->GetGroup(caster->GetName());
uint32 gid = raid->GetGroup(caster->GetName());
if (gid < MAX_RAID_GROUPS) {
std::vector<RaidMember> raid_group_members = raid->GetRaidGroupMembers(gid);
for (std::vector<RaidMember>::iterator iter = raid_group_members.begin();