Skip to content

Commit

Permalink
EOS/BG: Remove assert in favor of a whitelist condition
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Sep 23, 2022
1 parent eadc763 commit b20f5d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game/BattleGround/BattleGroundEY.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ bool BattleGroundEY::HandleEvent(uint32 eventId, Object* source, Object* target)
}

GameObject* go = dynamic_cast<GameObject*>(source);
MANGOS_ASSERT(go); // if not go, blow up so we can check why
if (!go) // people can misuse various effects in bgs, need a whitelist not a blacklist - this fits the bill nicely
return true;

// events called from the capture points
for (uint8 i = 0; i < EY_MAX_NODES; ++i)
Expand Down

0 comments on commit b20f5d9

Please sign in to comment.