diff --git a/data/lua/wml/items.lua b/data/lua/wml/items.lua index d824e9bd345..518ff6dc7c8 100644 --- a/data/lua/wml/items.lua +++ b/data/lua/wml/items.lua @@ -24,7 +24,7 @@ local function add_overlay(x, y, cfg) }) end -local function remove_overlay(x, y, name) +function wesnoth.interface.remove_overlay(x, y, name) local items = scenario_items[x * 10000 + y] if not items then return end wesnoth.interface.remove_hex_overlay(x, y, name) @@ -111,8 +111,6 @@ function wml_actions.store_items(cfg) end end -wesnoth.interface.remove_item = remove_overlay - function wesnoth.interface.add_item_image(x, y, name) add_overlay(x, y, { x = x, y = y, image = name }) end