diff options
author | Fabio Battaglia | 2009-10-11 22:20:58 +0000 |
---|---|---|
committer | Fabio Battaglia | 2009-10-11 22:20:58 +0000 |
commit | e1dc8452bd3d3d5e3de49d3de92c3c86cef79fa2 (patch) | |
tree | 719e4e4778a7c207f2ce812a00d8b526fd0f760b /engines | |
parent | bb7cac5b8734d4be3d08d54daed66cdd3613172d (diff) | |
download | scummvm-rg350-e1dc8452bd3d3d5e3de49d3de92c3c86cef79fa2.tar.gz scummvm-rg350-e1dc8452bd3d3d5e3de49d3de92c3c86cef79fa2.tar.bz2 scummvm-rg350-e1dc8452bd3d3d5e3de49d3de92c3c86cef79fa2.zip |
sword1: fix psx demo startup
svn-id: r44951
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sword1/music.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword1/music.cpp b/engines/sword1/music.cpp index 352cc11043..77c44a3aa6 100644 --- a/engines/sword1/music.cpp +++ b/engines/sword1/music.cpp @@ -285,7 +285,7 @@ bool MusicHandle::playPSX(uint16 id, bool loop) { tableFile.close(); - if ((size != 0) && (size != 0xffffffff)) { + if ((size != 0) && (size != 0xffffffff) && ((offset + size) <= _file.size())) { _file.seek(offset, SEEK_SET); _audioSource = new Audio::VagStream(_file.readStream(size), loop); fadeUp(); |