Browse Source

remove sentinel check now that loop operates on known bounds

Co-authored-by: Stephen C. Wills <swills@gridprotectionalliance.org>
pull/4599/head
Andrew James 4 years ago committed by Anders Jenbo
parent
commit
db90fd7956
  1. 2
      Source/items.cpp

2
Source/items.cpp

@ -1875,7 +1875,7 @@ _item_indexes RndVendorItem(const Player &player, int minlvl, int maxlvl)
static std::array<_item_indexes, 512> ril;
size_t ri = 0;
for (std::underlying_type_t<_item_indexes> i = IDI_WARRIOR; i <= IDI_LAST && AllItemsList[i].iLoc != ILOC_INVALID; i++) {
for (std::underlying_type_t<_item_indexes> i = IDI_WARRIOR; i <= IDI_LAST; i++) {
if (!IsItemAvailable(i))
continue;
if (AllItemsList[i].iRnd == IDROP_NEVER)

Loading…
Cancel
Save