aboutsummaryrefslogtreecommitdiff
path: root/sword1
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-01-11 16:53:33 +0000
committerTorbjörn Andersson2004-01-11 16:53:33 +0000
commit7309705db5e6994563d348f67e79f4b42bdff13f (patch)
treefb3b9cc394214e0efac36e83d7bfc04d4580fa60 /sword1
parentefb03e002407a452577c7838ca3074abe1b07b24 (diff)
downloadscummvm-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.cpp3
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;
}