Skip to content

Commit

Permalink
Fix 819
Browse files Browse the repository at this point in the history
  • Loading branch information
Dugy committed Jun 9, 2024
1 parent 6401b91 commit 6da69c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/unitdata.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6da69c0

Please sign in to comment.