replaceItemOfList by assigning array index

This commit is contained in:
adroitwhiz 2019-07-20 01:11:35 -04:00
parent 9ba9732e8a
commit 4e34f1735a

View file

@ -180,7 +180,7 @@ class Scratch3DataBlocks {
if (index === Cast.LIST_INVALID) { if (index === Cast.LIST_INVALID) {
return; return;
} }
list.value.splice(index - 1, 1, item); list.value[index - 1] = item;
list._monitorUpToDate = false; list._monitorUpToDate = false;
} }