diff options
author | Alyssa Milburn | 2010-12-04 23:47:59 +0000 |
---|---|---|
committer | Alyssa Milburn | 2010-12-04 23:47:59 +0000 |
commit | 5928532f0baeb773f330242daebe220f5c4111e8 (patch) | |
tree | 70b845be421bb53f8dd7de4a469884b952405fe7 | |
parent | 8ed8adeebaaadfe0d49edd73c19b63d2e3bad89b (diff) | |
download | scummvm-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.cpp | 5 |
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; } |