Fix uninitialized 'quality' variable

This commit is contained in:
2016-09-06 17:01:50 +02:00
parent f4ac2a0139
commit f6706c380b

View File

@ -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)