aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure
diff options
context:
space:
mode:
authorBorja Lorente2016-08-19 16:41:25 +0200
committerBorja Lorente2016-08-19 16:41:25 +0200
commitb884e6e29f26018f01cbaec5731e7a06f0b10d6e (patch)
treed99bd876dc585d25e1ec12397df3c11142c6597c /engines/macventure
parentccd5ad5162652dd3bcc06136ed1917b9f0f0b2ac (diff)
downloadscummvm-rg350-b884e6e29f26018f01cbaec5731e7a06f0b10d6e.tar.gz
scummvm-rg350-b884e6e29f26018f01cbaec5731e7a06f0b10d6e.tar.bz2
scummvm-rg350-b884e6e29f26018f01cbaec5731e7a06f0b10d6e.zip
MACVENTURE: Fix game file path retrieval
Diffstat (limited to 'engines/macventure')
-rw-r--r--engines/macventure/macventure.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/macventure/macventure.cpp b/engines/macventure/macventure.cpp
index b6fcba5d91..826409f30b 100644
--- a/engines/macventure/macventure.cpp
+++ b/engines/macventure/macventure.cpp
@@ -955,11 +955,10 @@ Common::String MacVentureEngine::getCommandsPausedString() const {
}
Common::String MacVentureEngine::getFilePath(FilePathID id) const {
- const Common::Array<Common::String> &names = _filenames->getStrings();
if (id <= 3) { // We don't want a file in the subdirectory
- return Common::String(names[id]);
+ return _filenames->getString(id);
} else { // We want a game file
- return Common::String(names[3] + "/" + names[id]);
+ return _filenames->getString(3) + "/" + _filenames->getString(id);
}
}