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();