sword1: fix psx demo startup
svn-id: r44951
This commit is contained in:
parent
bb7cac5b87
commit
e1dc8452bd
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue