ThePhrozenKeep / D2MOO

Reimplementation of the Diablo2 game coupled with patching facilities for modders.
MIT License
93 stars 29 forks source link

Missing +1 in the index return for ITEMS_RollMagicAffixesNew #106

Closed eugenekolo closed 1 year ago

eugenekolo commented 1 year ago

Also missing a +1.. Otherwise randint < 0 may never succeed and you can end up with an item without affixes.

Lectem commented 1 year ago

Good catch thanks! I checked other functions quickly and it seems to be the only place with this issue.