Call CurrentScriptThread() to get the current script, so it can throw an exception if the current thread is NULL

This commit is contained in:
smallmodel committed 2024-07-27 18:03:41 +02:00
1 parent 682dc89067
commit 73c8ff11b3
1 file changed
+1 -1
+1 -1
View File
@@ -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)