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>
  • Loading branch information
catterpiler74 authored and billy1arm committed Feb 13, 2025
1 parent bf0d484 commit 497fdef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Object/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13957,7 +13957,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 497fdef

Please sign in to comment.