diff --git a/Assets/Cryville/Common/Pdt/PdtVariableMemory.cs b/Assets/Cryville/Common/Pdt/PdtVariableMemory.cs
index 99688cf..6fe2644 100644
--- a/Assets/Cryville/Common/Pdt/PdtVariableMemory.cs
+++ b/Assets/Cryville/Common/Pdt/PdtVariableMemory.cs
@@ -123,7 +123,7 @@ namespace Cryville.Common.Pdt {
/// The item count of the array.
/// The span does not represent an array.
public void GetArraySuffix(out int arrtype, out int pc) {
- if (Type != PdtInternalType.Array && Type != PdtInternalType.Array)
+ if (Type != PdtInternalType.Vector && Type != PdtInternalType.Array)
throw new InvalidCastException("Not an array or vector");
arrtype = *(int*)(_ptr + Length - sizeof(int));
if (Type == PdtInternalType.Array) pc = *(int*)(_ptr + Length - 2 * sizeof(int));