refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-09-05 09:34:41 +02:00
parent 5fc37fe404
commit 843cfecbbf
3 changed files with 14 additions and 8 deletions
+1 -1
View File
@@ -372,7 +372,7 @@ end
function public.item_class_index(item_class)
for i, class in temp-A(GetAuctionItemClasses()) do
if item_class == nil then error() end
if type(item_class) ~= 'string' then error() end
if strupper(class) == strupper(item_class) then
return i, class
end