aboutsummaryrefslogtreecommitdiff
path: root/engines/wage
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wage')
-rw-r--r--engines/wage/world.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/wage/world.cpp b/engines/wage/world.cpp
index 6c74911a86..63b77a5501 100644
--- a/engines/wage/world.cpp
+++ b/engines/wage/world.cpp
@@ -359,18 +359,17 @@ void World::loadExternalSounds(Common::String fname) {
}
in.close();
- Common::MacResManager *resMan;
- resMan = new Common::MacResManager();
- resMan->open(fname);
+ Common::MacResManager resMan;
+ resMan.open(fname);
Common::MacResIDArray resArray;
Common::SeekableReadStream *res;
Common::MacResIDArray::const_iterator iter;
- resArray = resMan->getResIDArray(MKTAG('A','S','N','D'));
+ resArray = resMan.getResIDArray(MKTAG('A','S','N','D'));
for (iter = resArray.begin(); iter != resArray.end(); ++iter) {
- res = resMan->getResource(MKTAG('A','S','N','D'), *iter);
- addSound(new Sound(resMan->getResName(MKTAG('A','S','N','D'), *iter), res));
+ res = resMan.getResource(MKTAG('A','S','N','D'), *iter);
+ addSound(new Sound(resMan.getResName(MKTAG('A','S','N','D'), *iter), res));
}
}