DIRECTOR: Add sanity check to 'go to' functions

This commit is contained in:
Eugene Sandulenko 2017-01-09 18:35:11 +01:00
parent c18a3e28e2
commit 2d29e5db29

View File

@ -200,14 +200,23 @@ void Lingo::func_goto(Datum &frame, Datum &movie) {
}
void Lingo::func_gotoloop() {
if (!_vm->_currentScore)
return;
_vm->_currentScore->gotoloop();
}
void Lingo::func_gotonext() {
if (!_vm->_currentScore)
return;
_vm->_currentScore->gotonext();
}
void Lingo::func_gotoprevious() {
if (!_vm->_currentScore)
return;
_vm->_currentScore->gotoprevious();
}