From 451d59b9e6cc19d8054c04f8d7fd8956e147c691 Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 23 Jan 2021 13:50:22 +0000 Subject: [PATCH] Add missing retain() call to Group.pack() Signed-off-by: Graham --- cache/src/main/kotlin/org/openrs2/cache/Group.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/src/main/kotlin/org/openrs2/cache/Group.kt b/cache/src/main/kotlin/org/openrs2/cache/Group.kt index ff1cb44f02..75169216d9 100644 --- a/cache/src/main/kotlin/org/openrs2/cache/Group.kt +++ b/cache/src/main/kotlin/org/openrs2/cache/Group.kt @@ -72,7 +72,7 @@ public object Group { val first = files.values.first() if (files.size == 1) { - return first + return first.retain() } first.alloc().buffer().use { output ->