Describe the bug
AutoGear displays an error after looting a grey item from a dead ennemy.
Steps to reproduce the behavior:
- Kill any ennemy (lower than your current level)
- Click on its corpse to loot its stuff
- You can see that its stuff moves into your bags
- The following error appears (an the error counter keeps increasing again and again)
Expected behavior
No error after looting
Screenshots

Version:
- World of Warcraft (official): 9.0.5.38134
- Server locale region: FR
- OS: Windows 10 64bits
The error:
Message: Interface\AddOns\AutoGear\AutoGear.lua:1368: attempt to index upvalue 'weighting' (a nil value)
Time: Mon Apr 5 16:35:18 2021
Count: 86
Stack: Interface\AddOns\AutoGear\AutoGear.lua:1368: attempt to index upvalue 'weighting' (a nil value)
[string "@Interface\AddOns\AutoGear\AutoGear.lua"]:1368: in function `AutoGearSetStatWeights'
[string "@Interface\AddOns\AutoGear\AutoGear.lua"]:2147: in function `AutoGearScanBags'
[string "@Interface\AddOns\AutoGear\AutoGear.lua"]:3072: in function `AutoGearMain'
[string "@Interface\AddOns\AutoGear\AutoGear.lua"]:176: in function <Interface\AddOns\AutoGear\AutoGear.lua:175>
Locals: class = "MAGE"
spec = "Givre"
(*temporary) = nil
(*temporary) = "MAGE"
(*temporary) = "Givre"
(*temporary) = "Givre"
(*temporary) = 2
(*temporary) = 64
(*temporary) = "Givre"
(*temporary) = "attempt to index upvalue 'weighting' (a nil value)"
weighting = nil
weapons = nil
Describe the bug
AutoGear displays an error after looting a grey item from a dead ennemy.
Steps to reproduce the behavior:
Expected behavior
No error after looting
Screenshots

Version:
The error: