Fix crash on asigning faction to mob
This commit is contained in:
parent
d6f1ce0d24
commit
a955d5cdf9
@ -231,13 +231,13 @@ function mobf_factions.handle_rightclick(current_fields,fields,formname,player,f
|
||||
print("MOBF Factions: trying to delete from faction but no faction selected")
|
||||
end
|
||||
elseif current_fields[2] == "tl_mob_factions" then
|
||||
local event = explode_textlist_event(fields[fieldname])
|
||||
local event = core.explode_textlist_event(fields[fieldname])
|
||||
|
||||
if event.typ ~= "INV" then
|
||||
menu_data.tl_mob_selected = event.index
|
||||
end
|
||||
elseif current_fields[2] == "tl_owner_factions" then
|
||||
local event = explode_textlist_event(fields[fieldname])
|
||||
local event = core.explode_textlist_event(fields[fieldname])
|
||||
|
||||
if event.typ ~= "INV" then
|
||||
menu_data.tl_owner_selected = event.index
|
||||
|
Loading…
x
Reference in New Issue
Block a user