mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-25 01:00:23 +02:00
Call CurrentScriptThread() to get the current script, so it can throw an exception if the current thread is NULL
This commit is contained in:
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user