diff options
author | Borja Lorente | 2016-08-19 16:41:25 +0200 |
---|---|---|
committer | Borja Lorente | 2016-08-19 16:41:25 +0200 |
commit | b884e6e29f26018f01cbaec5731e7a06f0b10d6e (patch) | |
tree | d99bd876dc585d25e1ec12397df3c11142c6597c /engines | |
parent | ccd5ad5162652dd3bcc06136ed1917b9f0f0b2ac (diff) | |
download | scummvm-rg350-b884e6e29f26018f01cbaec5731e7a06f0b10d6e.tar.gz scummvm-rg350-b884e6e29f26018f01cbaec5731e7a06f0b10d6e.tar.bz2 scummvm-rg350-b884e6e29f26018f01cbaec5731e7a06f0b10d6e.zip |
MACVENTURE: Fix game file path retrieval
Diffstat (limited to 'engines')
-rw-r--r-- | engines/macventure/macventure.cpp | 5 |
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); } } |