# HG changeset patch # User Vynn # Date 1418709616 18000 # Node ID 9c388397240367da31cbe9c8774f9ff4cfef3256 # Parent d72291422362205521461ef3c5eb20a7ac9fbc0a Fixed an occasional nil-value comparison bug with an added failsafe. diff -r d72291422362 -r 9c3883972403 ProspectMe_Value.lua --- a/ProspectMe_Value.lua Tue Dec 16 00:25:18 2014 -0500 +++ b/ProspectMe_Value.lua Tue Dec 16 01:00:16 2014 -0500 @@ -16,6 +16,10 @@ v = PM_ItemTable[itemID].vendorPrice end + if v == nil then -- provides a final failsafe - if we can't find anything, set it to 0 (TY peterwemm!) + v = 0.0 + end + return tonumber(v) end