Browse Source

Merge pull request #1611 from qndel/RndWitchItem

[hellfire] RndWitchItem bin exact
pull/876/head
Robin Eklind 7 years ago committed by GitHub
parent
commit
35b5bd6f8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Source/items.cpp

4
Source/items.cpp

@ -3742,7 +3742,11 @@ int RndWitchItem(int lvl)
ri = 0;
for (i = 1; AllItemsList[i].iLoc != ILOC_INVALID; i++) {
#ifdef HELLFIRE
if (AllItemsList[i].iRnd && WitchItemOk(i) && lvl >= AllItemsList[i].iMinMLvl && ri < 512) {
#else
if (AllItemsList[i].iRnd && WitchItemOk(i) && lvl >= AllItemsList[i].iMinMLvl) {
#endif
ril[ri] = i;
ri++;
}

Loading…
Cancel
Save