diff options
| author | Torbjörn Andersson | 2004-01-11 16:53:33 +0000 |
|---|---|---|
| committer | Torbjörn Andersson | 2004-01-11 16:53:33 +0000 |
| commit | 7309705db5e6994563d348f67e79f4b42bdff13f (patch) | |
| tree | fb3b9cc394214e0efac36e83d7bfc04d4580fa60 /sword1 | |
| parent | efb03e002407a452577c7838ca3074abe1b07b24 (diff) | |
| download | scummvm-rg350-7309705db5e6994563d348f67e79f4b42bdff13f.tar.gz scummvm-rg350-7309705db5e6994563d348f67e79f4b42bdff13f.tar.bz2 scummvm-rg350-7309705db5e6994563d348f67e79f4b42bdff13f.zip | |
cleanup
svn-id: r12322
Diffstat (limited to 'sword1')
| -rw-r--r-- | sword1/music.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sword1/music.cpp b/sword1/music.cpp index c002aed40d..911cfceb1d 100644 --- a/sword1/music.cpp +++ b/sword1/music.cpp @@ -85,8 +85,7 @@ int MusicHandle::readBuffer(int16 *buffer, const int numSamples) { bool MusicHandle::play(const char *filename, bool loop) { uint8 wavHeader[WAVEHEADERSIZE]; stop(); - _file.open(filename); - if (!_file.isOpen()) { + if (!_file.open(filename)) { warning("Music file %s could not be opened", filename); return false; } |
