From 9de0b26da4877364b958b91e2327739b08759842 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 23 Aug 2020 22:58:03 +0100 Subject: [PATCH] Throw exception in remove() if group ID is negative Signed-off-by: Graham --- cache/src/main/java/dev/openrs2/cache/DiskStore.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/src/main/java/dev/openrs2/cache/DiskStore.kt b/cache/src/main/java/dev/openrs2/cache/DiskStore.kt index f0a8004a..d722b4c0 100644 --- a/cache/src/main/java/dev/openrs2/cache/DiskStore.kt +++ b/cache/src/main/java/dev/openrs2/cache/DiskStore.kt @@ -400,7 +400,7 @@ class DiskStore private constructor( } override fun remove(archive: Int, group: Int) { - checkArchive(archive) + checkGroup(archive, group) val index = indexes[archive] ?: return