Fix uninitialized 'quality' variable
This commit is contained in:
1 parent
f4ac2a0139
commit
f6706c380b
1 file changed
+2
-2
@@ -677,10 +677,10 @@ function MyBagsCore:GetInfoDataStore(bag, slot)
|
||||
name = GetItemInfo(ID)
|
||||
readable = IsSpecialtyBagFromID(ID)
|
||||
end
|
||||
return texture, count, ID, nil, quality, readable, name
|
||||
return texture, count, ID, nil, nil, readable, name
|
||||
else
|
||||
local ID, slotLink, count = DS:GetSlotInfo(container, slot)
|
||||
local name, itemLink, texture, quality, i_type
|
||||
local name, itemLink, texture, i_type
|
||||
if ID then
|
||||
name, itemLink = GetItemInfo(ID)
|
||||
texture = GetItemIcon(ID)
|
||||
|
||||
Reference in new issue
Block a user