From 73c8ff11b3eb5ef22a94704be0bc732864ca7aa9 Mon Sep 17 00:00:00 2001 From: smallmodel <15067410+smallmodel@users.noreply.github.com> Date: Sat, 27 Jul 2024 18:03:41 +0200 Subject: [PATCH] Call CurrentScriptThread() to get the current script, so it can throw an exception if the current thread is NULL --- code/fgame/scriptslave.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/fgame/scriptslave.cpp b/code/fgame/scriptslave.cpp index 924910eb..6409b1a5 100644 --- a/code/fgame/scriptslave.cpp +++ b/code/fgame/scriptslave.cpp @@ -819,7 +819,7 @@ void ScriptSlave::DoMove(Event *ev) void ScriptSlave::WaitMove(Event *ev) { NewMove(); - Register(0, Director.CurrentThread()); + Register(0, Director.CurrentScriptThread()); } void ScriptSlave::MoveEnd(Event *ev)