aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/barchive.cpp
diff options
context:
space:
mode:
authorDenis Kasak2009-07-02 16:15:32 +0000
committerDenis Kasak2009-07-02 16:15:32 +0000
commitbe3c0461d6af8f3631da88a92e9b66524a3c0a9c (patch)
tree130b853dc6fa92f139ebbfb37ae97be454dca3c6 /engines/draci/barchive.cpp
parent936e5f4c5e5c70f9869ed8a986173c92b7f39d4a (diff)
downloadscummvm-rg350-be3c0461d6af8f3631da88a92e9b66524a3c0a9c.tar.gz
scummvm-rg350-be3c0461d6af8f3631da88a92e9b66524a3c0a9c.tar.bz2
scummvm-rg350-be3c0461d6af8f3631da88a92e9b66524a3c0a9c.zip
DraciEngine now opens and stores pointers to essential archives. Changed code that used those archives to use that instead of opening them manually. Replaced BArchive::operator[] functionality with BArchive::getFile() to prevent ugliness when accessing archives via pointers.
svn-id: r42031
Diffstat (limited to 'engines/draci/barchive.cpp')
-rw-r--r--engines/draci/barchive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/draci/barchive.cpp b/engines/draci/barchive.cpp
index c6d6354716..cd0d4b2172 100644
--- a/engines/draci/barchive.cpp
+++ b/engines/draci/barchive.cpp
@@ -391,7 +391,7 @@ void BArchive::clearCache() {
}
-BAFile *BArchive::operator[](unsigned int i) const {
+BAFile *BArchive::getFile(unsigned int i) const {
// Check whether requested file exists
if (i >= _fileCount) {