[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.
This commit is contained in:
VladimirMangos 2010-11-26 17:36:54 +03:00
parent 21710cf05d
commit d266db672d
2 changed files with 4 additions and 2 deletions

View file

@ -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);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10784"
#define REVISION_NR "10785"
#endif // __REVISION_NR_H__