# HG changeset patch # User James D. Callahan III # Date 1367597372 18000 # Node ID 69ed3a28c7e6975069f14d7057d8870ce8546340 # Parent 495108578530da0b4998644dbd8c883f2f7844d6 Fix for possibility of C_BlackMarket.GetNumItems() returning nil. diff -r 495108578530 -r 69ed3a28c7e6 Main.lua --- 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);