Mercurial > wow > wowdb-profiler
diff Main.lua @ 282:69ed3a28c7e6 5.2.0-8
Fix for possibility of C_BlackMarket.GetNumItems() returning nil.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Fri, 03 May 2013 11:09:32 -0500 |
parents | 495108578530 |
children | 40c8f8e32c65 |
line wrap: on
line diff
--- a/Main.lua Mon Apr 01 11:14:15 2013 -0500 +++ b/Main.lua Fri May 03 11:09:32 2013 -0500 @@ -1031,7 +1031,7 @@ if not ALLOWED_LOCALES[CLIENT_LOCALE] then return end - local num_items = _G.C_BlackMarket.GetNumItems() + local num_items = _G.C_BlackMarket.GetNumItems() or 0 for index = 1, num_items do local name, texture, quantity, item_type, is_usable, level, level_type, seller_name, min_bid, min_increment, current_bid, has_high_bid, num_bids, time_left, item_link, market_id = _G.C_BlackMarket.GetItemInfoByIndex(index);