mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-08 10:51:11 +00:00
DIRECTOR: Add sanity check to 'go to' functions
This commit is contained in:
parent
c18a3e28e2
commit
2d29e5db29
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user