Mercurial > wow > itemauditor
diff Core.lua @ 159:fbfd9dfa6d2b tip
[mq]: minorStuff
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Sun, 09 Jan 2011 07:38:22 -0800 |
parents | 7ebe0a85d539 |
children |
line wrap: on
line diff
--- a/Core.lua Wed Dec 15 23:15:17 2010 -0800 +++ b/Core.lua Sun Jan 09 07:38:22 2011 -0800 @@ -534,6 +534,7 @@ function ItemAuditor:SaveValue(link, value, countChange) self:Debug("SaveValue(%s, %s, %s)", tostring(link), value, (countChange or 'default')) + assert(link, "invalid link") countChange = countChange or 0 local item = nil local realLink = self:GetSafeLink(link) @@ -623,6 +624,7 @@ end function ItemAuditor:GetItemCost(link, countModifier) + assert(link, format('invalid link: %s', tostring(link))) local item = self:GetItem(link, true) if item.invested > 0 then