diff options
author | Discover- <amort11@hotmail.com> | 2013-08-06 13:25:22 +0200 |
---|---|---|
committer | Discover- <amort11@hotmail.com> | 2013-08-06 13:26:52 +0200 |
commit | 7f744de746de3d91fea576cd9ff352851be0436a (patch) | |
tree | b49f82dd814b1b85696ee4f12e06d76b5d31e80f /src/server/game/Spells/SpellMgr.cpp | |
parent | 5164caa9ffb436ce5a3cbd9c344311eca5d95175 (diff) |
Core/Misc: Implement reinterpret casts for all battleground classes and use them.
Diffstat (limited to 'src/server/game/Spells/SpellMgr.cpp')
-rw-r--r-- | src/server/game/Spells/SpellMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index 42d408ebbad..db0102f4307 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -1136,7 +1136,7 @@ bool SpellArea::IsFitToRequirements(Player const* player, uint32 newZone, uint32 uint8 nodeType = spellId == 68719 ? NODE_TYPE_REFINERY : NODE_TYPE_QUARRY; uint8 nodeState = player->GetTeamId() == TEAM_ALLIANCE ? NODE_STATE_CONTROLLED_A : NODE_STATE_CONTROLLED_H; - BattlegroundIC* pIC = static_cast<BattlegroundIC*>(player->GetBattleground()); + BattlegroundIC* pIC = player->GetBattleground()->ToBattlegroundIC(); if (pIC->GetNodeState(nodeType) == nodeState) return true; |