Skip to content

Commit

Permalink
Simplify redundant condition in Player.cpp
Browse files Browse the repository at this point in the history
Signed-off-by: Cala <calaftp@free.fr>

(based on cmangos/mangos-wotlk@fb13d4a95)

Signed-off-by: Xfurry <xfurry.cmangos@outlook.com>
  • Loading branch information
catterpiler74 authored and xfurry committed Dec 10, 2017
1 parent 5be0f65 commit 707a358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Player.cpp
Expand Up @@ -11784,7 +11784,7 @@ void Player::UpdateItemDuration(uint32 time, bool realtimeonly)
Item* item = *itr;
++itr; // current element can be erased in UpdateDuration

if ((realtimeonly && (item->GetProto()->ExtraFlags & ITEM_EXTRA_REAL_TIME_DURATION)) || !realtimeonly)
if (!(realtimeonly) || (item->GetProto()->ExtraFlags & ITEM_EXTRA_REAL_TIME_DURATION))
item->UpdateDuration(this, time);
}
}
Expand Down

0 comments on commit 707a358

Please sign in to comment.