Skip to content

Commit

Permalink
Fix crash in BattleGroundWS.cpp due to wrong argument passed to IsFla…
Browse files Browse the repository at this point in the history
…gPickedUp()
  • Loading branch information
Karth-Xyver authored and killerwife committed Oct 26, 2023
1 parent eb6f502 commit 6014540
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/game/BattleGround/BattleGroundWS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ void BattleGroundWS::Update(uint32 diff)
{
for (uint8 i = 0; i < PVP_TEAM_COUNT; ++i)
{
Team playerTeam = GetTeamIdByTeamIndex((PvpTeamIndex)i);
if (IsFlagPickedUp(playerTeam))
if (IsFlagPickedUp((PvpTeamIndex)i))
if (Player* player = GetBgMap()->GetPlayer(GetFlagCarrierGuid((PvpTeamIndex)i)))
player->CastSpell(player, BG_WS_SPELL_FOCUSED_ASSAULT, TRIGGERED_OLD_TRIGGERED);
}
Expand All @@ -106,8 +105,7 @@ void BattleGroundWS::Update(uint32 diff)
{
for (uint8 i = 0; i < PVP_TEAM_COUNT; ++i)
{
Team playerTeam = GetTeamIdByTeamIndex((PvpTeamIndex)i);
if (IsFlagPickedUp(playerTeam))
if (IsFlagPickedUp((PvpTeamIndex)i))
{
if (Player* player = GetBgMap()->GetPlayer(GetFlagCarrierGuid((PvpTeamIndex)i)))
{
Expand Down

0 comments on commit 6014540

Please sign in to comment.