Core/Misc: Implement reinterpret casts for all battleground classes and use them.

This commit is contained in:
Discover- committed 2013-08-06 13:26:52 +02:00
1 parent 5164caa9ff
commit 7f744de746
6 files changed
+61 -11

No files matched your search

+1 -1
View File
@@ -530,7 +530,7 @@ void WorldSession::HandleQuestgiverCompleteQuest(WorldPacket& recvData)
if (_player->InBattleground())
if (Battleground* bg = _player->GetBattleground())
if (bg->GetTypeID() == BATTLEGROUND_AV)
((BattlegroundAV*)bg)->HandleQuestComplete(questId, _player);
bg->ToBattlegroundAV()->HandleQuestComplete(questId, _player);
if (_player->GetQuestStatus(questId) != QUEST_STATUS_COMPLETE)
{