fix excisor's sometimes disintegrating lists
This commit is contained in:
parent
07d8f5a839
commit
24e98169e6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue