mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-07 11:04:38 -04:00
Fix variable deletion bug.
This commit is contained in:
parent
a8fc399746
commit
ee9a99b928
1 changed files with 1 additions and 1 deletions
|
@ -372,7 +372,7 @@ class Blocks {
|
|||
}
|
||||
break;
|
||||
case 'var_delete': {
|
||||
const target = (editingTarget && editingTarget.hasOwnProperty(e.varId)) ?
|
||||
const target = (editingTarget && editingTarget.variables.hasOwnProperty(e.varId)) ?
|
||||
editingTarget : stage;
|
||||
target.deleteVariable(e.varId);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue