Add sanity check to ConstantPool builder

Signed-off-by: Graham <gpe@openrs2.org>
pull/132/head
Graham 3 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