fix for locales with some item names missing

This commit is contained in:
Manuel Simon Hirsig
2015-11-01 21:53:27 +01:00
parent 78cd951902
commit 09f9deba6b
+3 -1
View File
@@ -12,7 +12,9 @@ function public.on_event()
Aux.localized_auctionable_items = {}
for _, item_id in private.auctionable_items do
local name = GetItemInfo(item_id)
tinsert(Aux.localized_auctionable_items, { name=name, id=item_id })
if name then
tinsert(Aux.localized_auctionable_items, { name=name, id=item_id })
end
end
end
end