From c15ce465fd0a684256d3d72538bb06e7bc42da0a Mon Sep 17 00:00:00 2001 From: qndel Date: Sun, 15 Sep 2019 03:38:18 +0200 Subject: [PATCH] [hellfire] RndPremiumItem bin exact --- Source/items.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/items.cpp b/Source/items.cpp index cbec8f07d..039ec2580 100644 --- a/Source/items.cpp +++ b/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++; }