diff --git a/Source/Collections/Deque.cs b/Source/Collections/Deque.cs
index 14286a9..0899f9a 100644
--- a/Source/Collections/Deque.cs
+++ b/Source/Collections/Deque.cs
@@ -124,7 +124,9 @@ namespace Nuclex.Support.Collections {
this.currentBlock = null;
this.currentBlockIndex = -1;
this.subIndex = this.deque.blockSize - 1;
+#if DEBUG
this.expectedVersion = this.deque.version;
+#endif
}
/// The item at the enumerator's current position
@@ -155,10 +157,10 @@ namespace Nuclex.Support.Collections {
private ItemType[] currentBlock;
/// Index in the current block
private int subIndex;
-
+#if DEBUG
/// Version the deque is expected to have
private int expectedVersion;
-
+#endif
}
#endregion // class Enumerator