sword1: fix psx demo startup

svn-id: r44951
This commit is contained in:
Fabio Battaglia 2009-10-11 22:20:58 +00:00
parent bb7cac5b87
commit e1dc8452bd

View file

@ -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();