aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage
diff options
context:
space:
mode:
authorPaul Gilbert2013-11-12 22:08:29 -0500
committerPaul Gilbert2013-11-12 22:08:29 -0500
commit73542cdff01da499ce7d58c66b8c15e487293ee6 (patch)
tree72dd22946b7a263c1305a5484c6d3e86e3295ba0 /engines/tsage
parent4f7913c3553a0294675b46a9ccbbee19fceecb8d (diff)
downloadscummvm-rg350-73542cdff01da499ce7d58c66b8c15e487293ee6.tar.gz
scummvm-rg350-73542cdff01da499ce7d58c66b8c15e487293ee6.tar.bz2
scummvm-rg350-73542cdff01da499ce7d58c66b8c15e487293ee6.zip
TSAGE: Fix for R2R crash loading voice after landing on spaceport
Diffstat (limited to 'engines/tsage')
-rw-r--r--engines/tsage/sound.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/tsage/sound.cpp b/engines/tsage/sound.cpp
index 287d8d04b3..c8ad8c1281 100644
--- a/engines/tsage/sound.cpp
+++ b/engines/tsage/sound.cpp
@@ -2606,7 +2606,8 @@ bool PlayStream::play(int voiceNum, EventHandler *endAction) {
// Reached start of next voice sample, so stop
break;
if (strncmp(header, "MORE", 4))
- error("Invalid stream data");
+ // Not more remaining, so break
+ break;
// Get the size of the chunk
chunkSize = _file.readUint16LE() - 16;