don't set stopTutorial listener before we can be sure that markerN is set
This commit is contained in:
parent
9ce73af7a4
commit
c6790fd328
1 changed files with 1 additions and 1 deletions
|
@ -34,6 +34,7 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
|
|||
last_messageN = props.globals.getNode("/sim/tutorials/last-message", 1);
|
||||
step_countN = props.globals.getNode("/sim/tutorials/step-count", 1);
|
||||
step_timeN = props.globals.getNode("/sim/tutorials/step-time", 1);
|
||||
setlistener("/sim/crashed", stopTutorial);
|
||||
});
|
||||
|
||||
|
||||
|
@ -123,7 +124,6 @@ var stopTutorial = func {
|
|||
is_running(0);
|
||||
}
|
||||
|
||||
_setlistener("/sim/crashed", stopTutorial);
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue