Merge pull request #456 from wpferguson/fix_NaN

examples/gui_action.lua - changed nan to NaN
This commit is contained in:
wpferguson
2024-03-29 16:05:22 -04:00
committed by GitHub

View File

@@ -90,7 +90,7 @@ dt.register_lib(
label = "execute action",
tooltip = "execute the action specified in the fields above",
clicked_callback = function(_)
local sp = nan
local sp = NaN
if wg.check.value then sp = wg.speed.text end
wg.return_value.text = dt.gui.action(wg.action.text, wg.instance.value, wg.element.text, wg.effect.text, sp)
end
@@ -102,4 +102,4 @@ dt.register_lib(
wg.return_value
},
}
)
)