Browse Source

[hellfire] RndPremiumItem bin exact

pull/876/head
qndel 7 years ago
parent
commit
c15ce465fd
  1. 4
      Source/items.cpp

4
Source/items.cpp

@ -3639,7 +3639,11 @@ int RndPremiumItem(int minlvl, int maxlvl)
for (i = 1; AllItemsList[i].iLoc != ILOC_INVALID; i++) {
if (AllItemsList[i].iRnd) {
if (PremiumItemOk(i)) {
#ifdef HELLFIRE
if (AllItemsList[i].iMinMLvl >= minlvl && AllItemsList[i].iMinMLvl <= maxlvl && ri < 512) {
#else
if (AllItemsList[i].iMinMLvl >= minlvl && AllItemsList[i].iMinMLvl <= maxlvl) {
#endif
ril[ri] = i;
ri++;
}

Loading…
Cancel
Save