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 cala committed Feb 21, 2017
1 parent 571793b commit fb13d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Player.cpp
Expand Up @@ -12213,7 +12213,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 fb13d4a

Please sign in to comment.