Mercurial > wow > itemauditor
comparison Core.lua @ 31:f99b9602bdab
Removed code introduced last night that can cause ItemAuditor to crash.
| author | Asa Ayers <Asa.Ayers@Gmail.com> |
|---|---|
| date | Fri, 16 Jul 2010 06:52:08 -0700 |
| parents | 34daa46b644a |
| children | aaa716c93fb2 |
comparison
equal
deleted
inserted
replaced
| 30:d1df322a512f | 31:f99b9602bdab |
|---|---|
| 230 invested = abs(self.db.factionrealm.item_account[itemName] or 0), | 230 invested = abs(self.db.factionrealm.item_account[itemName] or 0), |
| 231 } | 231 } |
| 232 | 232 |
| 233 end | 233 end |
| 234 | 234 |
| 235 if self.items[link] ~= nil then | |
| 236 if self.items[link].invested == nil or self.items[link].invested <= 0 then | |
| 237 self.items[link] = nil | |
| 238 end | |
| 239 end | |
| 240 | |
| 241 if viewOnly == true and self.items[link] == nil then | 235 if viewOnly == true and self.items[link] == nil then |
| 242 return {count = 0, invested = 0} | 236 return {count = 0, invested = 0} |
| 243 elseif viewOnly == true then | 237 elseif viewOnly == true then |
| 244 | 238 |
| 245 return {count = self.items[link].count, invested = self.items[link].invested} | 239 return {count = self.items[link].count, invested = self.items[link].invested} |
