aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/mohawk/livingbooks.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index 5318d8c08e..fff3dc8647 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -2405,7 +2405,10 @@ bool LBLiveTextItem::togglePlaying(bool playing, bool restart) {
_vm->_sound->stopSound();
_currentWord = 0xFFFF;
- _currentPhrase = 0;
+
+ // some LiveText items don't have any phrases!
+ if (_phrases.size() > 0)
+ _currentPhrase = 0;
return true;
}