From f484fe4176abe170cee28362ff873371ac469fb8 Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Mon, 3 Apr 2023 16:47:46 -0400 Subject: [PATCH] [Cleanup] gid is assigned 2 values simultaneously in bot.cpp (#3234) # Notes - Unnecessarily assigning the value twice simultaneously. --- zone/bot.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index e29231e08..ae17f40ab 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -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 raid_group_members = raid->GetRaidGroupMembers(gid); for (std::vector::iterator iter = raid_group_members.begin();