Fix crash in block cache aging

Bug introduced in e2a11f2d90
This commit is contained in:
Martin Herkt 2014-11-12 06:15:50 +01:00
parent ea9ee7effa
commit cf55299017
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ class DataBlockCache {
return;
auto& ba = mb.blocks;
size += (ba.size() - std::count(ba.begin(), ba.end(), nullptr)) * factory.GetBlockSize();
size -= (ba.size() - std::count(ba.begin(), ba.end(), nullptr)) * factory.GetBlockSize();
ba.clear();
age.erase(mb.position);