diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index a931d87e35a..a465dd07542 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -1098,7 +1098,7 @@ void ResourceManager::printLRU() { void ResourceManager::freeOldResources() { while (_maxMemoryLRU < _memoryLRU) { assert(!_LRU.empty()); - Resource *goner = *_LRU.reverse_begin(); + Resource *goner = _LRU.back(); removeFromLRU(goner); goner->unalloc(); #ifdef SCI_VERBOSE_RESMAN