mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-16 16:56:07 +00:00
Build/Clang: fixed 96 warnings + improved code readability
This commit is contained in:
@@ -1362,7 +1362,7 @@ void Group::CountTheRoll(Rolls::iterator rollI, Map* allowedMap)
|
||||
continue;
|
||||
|
||||
player = ObjectAccessor::FindPlayer(itr->first);
|
||||
if (!player || allowedMap != NULL && player->FindMap() != allowedMap)
|
||||
if (!player || (allowedMap != NULL && player->FindMap() != allowedMap))
|
||||
{
|
||||
--roll->totalNeed;
|
||||
continue;
|
||||
@@ -1426,7 +1426,7 @@ void Group::CountTheRoll(Rolls::iterator rollI, Map* allowedMap)
|
||||
continue;
|
||||
|
||||
player = ObjectAccessor::FindPlayer(itr->first);
|
||||
if (!player || allowedMap != NULL && player->FindMap() != allowedMap)
|
||||
if (!player || (allowedMap != NULL && player->FindMap() != allowedMap))
|
||||
{
|
||||
--roll->totalGreed;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user