From 1e7814488e33d0c38dc78a90bcf30491a2b3d368 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 17 Oct 2024 18:51:02 -0700 Subject: [PATCH] register ScriptSignal UserData type because it's not initialized for some reason --- src/runner/script_signal.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runner/script_signal.rs b/src/runner/script_signal.rs index 45eab8e..877f2b6 100644 --- a/src/runner/script_signal.rs +++ b/src/runner/script_signal.rs @@ -165,6 +165,7 @@ pub fn set_globals(lua:&mlua::Lua,globals:&mlua::Table)->Result<(),mlua::Error>{ lua.register_userdata_type::(|reg|{ reg.add_field("Wait",wait); + mlua::UserData::register(reg); })?; Ok(())