diff options
author | Shauren <shauren.trinity@gmail.com> | 2016-01-03 00:55:48 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2016-01-03 00:55:48 +0100 |
commit | bb9c69b211f67cf0b1cce99156bf66ce1f4f5a6d (patch) | |
tree | d7455f204d94583c3e1b21cf9c6c1c988ce76818 | |
parent | d9849fb87b41828af07f8abce85074976dbc2d91 (diff) |
Warning fix
-rw-r--r-- | src/server/game/Conditions/ConditionMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Conditions/ConditionMgr.cpp b/src/server/game/Conditions/ConditionMgr.cpp index 670cae308d6..6c453d526a5 100644 --- a/src/server/game/Conditions/ConditionMgr.cpp +++ b/src/server/game/Conditions/ConditionMgr.cpp @@ -2509,7 +2509,7 @@ bool ConditionMgr::IsPlayerMeetingCondition(Player* player, PlayerConditionEntry results.fill(true); for (std::size_t i = 0; i < PrevQuestCount::value; ++i) if (uint32 questBit = sDB2Manager.GetQuestUniqueBitFlag(condition->PrevQuestID[i])) - results[i] = (player->GetUInt32Value(PLAYER_FIELD_QUEST_COMPLETED + (questBit - 1) >> 5) & (1 << ((questBit - 1) & 31))) != 0; + results[i] = (player->GetUInt32Value(PLAYER_FIELD_QUEST_COMPLETED + ((questBit - 1) >> 5)) & (1 << ((questBit - 1) & 31))) != 0; if (!PlayerConditionLogic(condition->PrevQuestLogic, results)) return false; |