vendor-values: ignore negative item count

This commit is contained in:
shagu
2025-06-14 18:24:07 +02:00
parent 3bbde9eb91
commit b6c0a42685
+1 -1
View File
@@ -3898,7 +3898,7 @@ module.enable = function(self)
if GameTooltip.itemLink and (GameTooltip.ignoreMerchant or not MerchantFrame:IsShown()) then
local _, _, id = string.find(GameTooltip.itemLink, "item:(%d+):%d+:%d+:%d+")
local count = GameTooltip.itemCount or 1
AddVendorPrices(GameTooltip, tonumber(id), count)
AddVendorPrices(GameTooltip, tonumber(id), math.max(count, 1))
end
end)