Core/Misc: Implement reinterpret casts for all battleground classes and use them.
This commit is contained in:
1 parent
5164caa9ff
commit
7f744de746
6 files changed
+61
-11
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user