Skip to content

Commit

Permalink
fix numBagSlots error
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexFolland committed Feb 8, 2024
1 parent 34d874f commit f5565a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AutoGear.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3798,7 +3798,7 @@ function AutoGearDetermineItemScore(info)
else
return info.numBagSlots * E -- specialized bags suck, so consider them only better than nothing
end
elseif info.isAmmoBag then
elseif info.isAmmoBag and info.numBagSlots then
return info.numBagSlots + (info.ammoBagRangedAttackSpeed and info.ammoBagRangedAttackSpeed or 0)
end

Expand Down

0 comments on commit f5565a2

Please sign in to comment.