aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorColin Snover2017-06-04 22:02:30 -0500
committerColin Snover2017-06-09 22:47:54 -0500
commitb73906feb7b5aabf0e0efb5a0040c3dac94656a9 (patch)
treeda4e4d71bcbd63dc18c3bb08ecd2037e3d87cfb1 /engines
parent06e82211ee38b0e63d81befed6b2cde9be4beba3 (diff)
downloadscummvm-rg350-b73906feb7b5aabf0e0efb5a0040c3dac94656a9.tar.gz
scummvm-rg350-b73906feb7b5aabf0e0efb5a0040c3dac94656a9.tar.bz2
scummvm-rg350-b73906feb7b5aabf0e0efb5a0040c3dac94656a9.zip
SCI: Get LRU from list directly, instead of from a reverse iterator
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/resource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp
index a931d87e35..a465dd0754 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