From 794463febdfc6230e2db5968fa413a09f45d0236 Mon Sep 17 00:00:00 2001 From: Graham Date: Fri, 18 Jun 2021 13:03:28 +0100 Subject: [PATCH] Append the version trailer to the correct buffer Oops! Signed-off-by: Graham --- cache/src/main/kotlin/org/openrs2/cache/Archive.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/src/main/kotlin/org/openrs2/cache/Archive.kt b/cache/src/main/kotlin/org/openrs2/cache/Archive.kt index a9e48b17..cd3db9bc 100644 --- a/cache/src/main/kotlin/org/openrs2/cache/Archive.kt +++ b/cache/src/main/kotlin/org/openrs2/cache/Archive.kt @@ -101,7 +101,7 @@ public abstract class Archive internal constructor( entry.digest = compressed.whirlpool() } - appendVersion(buf, ++entry.version) + appendVersion(compressed, ++entry.version) writePacked(entry.id, compressed) } }