Mercurial > wow > prospect-me
changeset 4:9c3883972403 v1.2.3-Release
Fixed an occasional nil-value comparison bug with an added failsafe.
author | Vynn |
---|---|
date | Tue, 16 Dec 2014 01:00:16 -0500 |
parents | d72291422362 |
children | e7aab70ad9fb |
files | .hgtags ProspectMe_Value.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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