From d266db672defbca711a4778d04d6c541654de01d Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Fri, 26 Nov 2010 17:36:54 +0300 Subject: [PATCH] [10785] Fixed warnings at comparison BattleGroundTeamIndex and BattleGroundAVTeamIndex Maybe adding special operator== or != can be more nice way but for small used cases this not look so need really. --- src/game/BattleGroundAV.cpp | 4 +++- src/shared/revision_nr.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/game/BattleGroundAV.cpp b/src/game/BattleGroundAV.cpp index ea8fed33d..212c05d61 100644 --- a/src/game/BattleGroundAV.cpp +++ b/src/game/BattleGroundAV.cpp @@ -101,7 +101,9 @@ void BattleGroundAV::HandleQuestComplete(uint32 questid, Player *player) { if (GetStatus() != STATUS_IN_PROGRESS) return; - BattleGroundTeamIndex teamIdx = GetTeamIndexByTeamId(player->GetTeam()); + BattleGroundAVTeamIndex teamIdx = GetAVTeamIndexByTeamId(player->GetTeam()); + MANGOS_ASSERT(teamIdx != BG_AV_TEAM_NEUTRAL); + uint32 reputation = 0; // reputation for the whole team (other reputation must be done in db) // TODO add events (including quest not available anymore, next quest availabe, go/npc de/spawning) sLog.outError("BattleGroundAV: Quest %i completed", questid); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index b7e6bff0b..ae5f91624 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10784" + #define REVISION_NR "10785" #endif // __REVISION_NR_H__