Fix crash

This commit is contained in:
Jean-Patrick Guerrero
2022-04-25 16:00:49 +02:00
parent 7e0feefc89
commit e88921fe72
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ local function search(data)
for i = 1, #data.items_raw do
local item = data.items_raw[i]
local def = reg_items[item]
local desc = lower(translate(data.lang_code, def and def.description)) or ""
local desc = lower(translate(data.lang_code, def.description)) or ""
local search_in = fmt("%s %s", item, desc)
local temp, j, to_add = {}, 1