aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Menshakov2009-12-12 18:07:20 +0000
committerVladimir Menshakov2009-12-12 18:07:20 +0000
commit65ed29b3be3ea735c581894882566355aa78a2eb (patch)
treeb6e59c0f07827492ba00122b39e7549af043fc26
parent1071c6d3981106c1baa2f27cc72ef117cb0117d8 (diff)
downloadscummvm-rg350-65ed29b3be3ea735c581894882566355aa78a2eb.tar.gz
scummvm-rg350-65ed29b3be3ea735c581894882566355aa78a2eb.tar.bz2
scummvm-rg350-65ed29b3be3ea735c581894882566355aa78a2eb.zip
do not play music while _rows is empty
svn-id: r46345
-rw-r--r--engines/teenagent/music.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/teenagent/music.cpp b/engines/teenagent/music.cpp
index b01dd5ac46..1a0b51a6e8 100644
--- a/engines/teenagent/music.cpp
+++ b/engines/teenagent/music.cpp
@@ -131,6 +131,9 @@ void MusicPlayer::stop() {
}
void MusicPlayer::interrupt() {
+ if (_rows.empty())
+ return;
+
_currRow %= _rows.size();
Row *row = &_rows[_currRow];