From 57c2afdb361cea81c4f95b134c3b4d0187ba7d4a Mon Sep 17 00:00:00 2001 From: akiraveliara Date: Mon, 25 Sep 2023 20:47:31 +0200 Subject: [PATCH] this one is also wrong --- src/Bundles/ValueCollections/ValueStack.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundles/ValueCollections/ValueStack.cs b/src/Bundles/ValueCollections/ValueStack.cs index e45fcee..c1ec182 100644 --- a/src/Bundles/ValueCollections/ValueStack.cs +++ b/src/Bundles/ValueCollections/ValueStack.cs @@ -203,7 +203,7 @@ public readonly ref T PeekRef() { if (this.count != 0) { - return ref this.items[count]; + return ref this.items[count - 1]; } ThrowHelper.ThrowCollectionEmpty();