lowered max item id to 30000 (what is really the highest though?)

This commit is contained in:
Manuel Simon Hirsig
2015-09-27 15:34:29 +02:00
parent 87d434aa4a
commit 348d965d33
+1 -1
View File
@@ -12,7 +12,7 @@ function Aux.util.item_name_autocomplete()
local text = this:GetText()
local textlen = strlen(text)
local name
for item_id=1,40000 do
for item_id=1,30000 do
name = GetItemInfo(item_id)
if name and strfind(strupper(name), '^' .. strupper(text)) then
this:SetText(name)