diff --git a/exp_scenario/module/gui/calculator.lua b/exp_scenario/module/gui/calculator.lua index ffc0d9f1..a3665114 100644 --- a/exp_scenario/module/gui/calculator.lua +++ b/exp_scenario/module/gui/calculator.lua @@ -328,7 +328,7 @@ end --- Value change function Elements.change(event) - Elements.calculator_result_label.caption = event.text == "" and "" or Elements.parse(event.text:lower()) + event.element.parent.calculator_result_label.caption = event.text == "" and "" or Elements.parse(event.text:lower()) end local e = defines.events