Throw exception in remove() if group ID is negative

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 4 years ago
parent 63a8f5534e
commit 9de0b26da4
  1. 2
      cache/src/main/java/dev/openrs2/cache/DiskStore.kt

@ -400,7 +400,7 @@ class DiskStore private constructor(
} }
override fun remove(archive: Int, group: Int) { override fun remove(archive: Int, group: Int) {
checkArchive(archive) checkGroup(archive, group)
val index = indexes[archive] ?: return val index = indexes[archive] ?: return

Loading…
Cancel
Save