Add sanity check to ConstantPool builder

Signed-off-by: Graham <gpe@openrs2.org>
bzip2
Graham 4 years ago
parent 86a84c6986
commit 8cd7645536
  1. 2
      asm/src/main/kotlin/org/openrs2/asm/packclass/ConstantPool.kt

@ -160,6 +160,8 @@ public class ConstantPool private constructor(
} }
} }
check(!it.hasNext())
return ConstantPool( return ConstantPool(
stringArray, stringArray,
fieldNamesAndTypes.toTypedArray(), fieldNamesAndTypes.toTypedArray(),

Loading…
Cancel
Save