summaryrefslogtreecommitdiff
path: root/libs/JSystem/JKernel/JKRFileCache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/JSystem/JKernel/JKRFileCache.cpp')
-rw-r--r--libs/JSystem/JKernel/JKRFileCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/JSystem/JKernel/JKRFileCache.cpp b/libs/JSystem/JKernel/JKRFileCache.cpp
index 33f231947c..e480f0bc2c 100644
--- a/libs/JSystem/JKernel/JKRFileCache.cpp
+++ b/libs/JSystem/JKernel/JKRFileCache.cpp
@@ -319,7 +319,7 @@ void JKRFileCache::removeResourceAll(void) {
iterator = mCacheBlockList.getFirst();
while (iterator != mCacheBlockList.getEnd()) {
JKRFreeToHeap(mParentHeap, iterator->mMemoryPtr);
- mCacheBlockList.remove(&iterator->mLink);
+ mCacheBlockList.remove(iterator.mLink);
JSUListIterator<CCacheBlock> next = iterator++;
CCacheBlock* cacheBlock = next.getObject();
delete cacheBlock;