From 6da69c0ded7736d36133927e59aa3e64e87f6b76 Mon Sep 17 00:00:00 2001 From: Dugy Date: Mon, 10 Jun 2024 01:33:50 +0200 Subject: [PATCH] Fix 819 --- lua/unitdata.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/unitdata.lua b/lua/unitdata.lua index 86f97e30..8e2762e3 100644 --- a/lua/unitdata.lua +++ b/lua/unitdata.lua @@ -319,7 +319,7 @@ local wml_based_implementation = { item.sort = item_sort end - local on_equip = wml.get_child(item, "on_equip") + local on_equip = wml.get_child(loti.item.type[item_number], "on_equip") if on_equip then local variable = on_equip.variable or "armed" wml.variables[variable] = unit