diff options
author | Colin Snover | 2017-06-04 22:02:30 -0500 |
---|---|---|
committer | Colin Snover | 2017-06-09 22:47:54 -0500 |
commit | b73906feb7b5aabf0e0efb5a0040c3dac94656a9 (patch) | |
tree | da4e4d71bcbd63dc18c3bb08ecd2037e3d87cfb1 /engines | |
parent | 06e82211ee38b0e63d81befed6b2cde9be4beba3 (diff) | |
download | scummvm-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.cpp | 2 |
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 |