aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/director/lingo/lingo-funcs.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo-funcs.cpp b/engines/director/lingo/lingo-funcs.cpp
index e17712848a..b28436aea3 100644
--- a/engines/director/lingo/lingo-funcs.cpp
+++ b/engines/director/lingo/lingo-funcs.cpp
@@ -290,6 +290,11 @@ void Lingo::func_play(Datum &frame, Datum &movie) {
return;
}
+ if (!_vm->getCurrentScore()) {
+ warning("Lingo::func_play(): no score");
+ return;
+ }
+
ref.frameI = _vm->getCurrentScore()->getCurrentFrame();
_vm->_movieStack.push_back(ref);