From be3c0461d6af8f3631da88a92e9b66524a3c0a9c Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Thu, 2 Jul 2009 16:15:32 +0000 Subject: 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 --- engines/draci/barchive.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/draci/barchive.cpp') 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) { -- cgit v1.2.3