aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Milburn2010-12-04 23:47:59 +0000
committerAlyssa Milburn2010-12-04 23:47:59 +0000
commit5928532f0baeb773f330242daebe220f5c4111e8 (patch)
tree70b845be421bb53f8dd7de4a469884b952405fe7
parent8ed8adeebaaadfe0d49edd73c19b63d2e3bad89b (diff)
downloadscummvm-rg350-5928532f0baeb773f330242daebe220f5c4111e8.tar.gz
scummvm-rg350-5928532f0baeb773f330242daebe220f5c4111e8.tar.bz2
scummvm-rg350-5928532f0baeb773f330242daebe220f5c4111e8.zip
MOHAWK: fix LiveText items without phrases
svn-id: r54769
-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;
}