mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
[Cleanup] gid is assigned 2 values simultaneously in bot.cpp (#3234)
# Notes - Unnecessarily assigning the value twice simultaneously.
This commit is contained in:
parent
3d20c0d6aa
commit
f484fe4176
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user