mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 23:12:24 -05:00
replaceItemOfList by assigning array index
This commit is contained in:
parent
9ba9732e8a
commit
4e34f1735a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue