fix excisor's sometimes disintegrating lists

This commit is contained in:
yrsegal@gmail.com 2022-08-06 17:22:13 -04:00
parent 07d8f5a839
commit 24e98169e6

View file

@ -11,7 +11,7 @@ object OpRemove : ConstManaOperator {
val list = args.getChecked<SpellList>(0, argc).toMutableList()
val index = args.getChecked<Double>(1, argc).toInt()
if (index < 0 || index >= list.size)
return list
return list.asSpellResult
list.removeAt(index)
return list.asSpellResult
}