aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wage/world.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/engines/wage/world.cpp b/engines/wage/world.cpp
index fa8cfd57a1..713207070c 100644
--- a/engines/wage/world.cpp
+++ b/engines/wage/world.cpp
@@ -359,17 +359,11 @@ void World::addSound(Sound *sound) {
}
void World::loadExternalSounds(Common::String fname) {
- Common::File in;
-
- in.open(fname);
- if (!in.isOpen()) {
+ Common::MacResManager resMan;
+ if (!resMan.open(fname)) {
warning("Cannot load sound file <%s>", fname.c_str());
return;
}
- in.close();
-
- Common::MacResManager resMan;
- resMan.open(fname);
Common::MacResIDArray resArray;
Common::SeekableReadStream *res;