From 47c821018e95ddb187f0c0b9d230b36cceb03b47 Mon Sep 17 00:00:00 2001 From: alschmiedt Date: Tue, 30 Nov 2021 16:03:18 -0800 Subject: [PATCH] fix: procedure callers now remove inputs properly (#5751) --- blocks/procedures.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/procedures.js b/blocks/procedures.js index a6f8e6f4a..3ed36b830 100644 --- a/blocks/procedures.js +++ b/blocks/procedures.js @@ -808,7 +808,7 @@ const procedureCall = { } } // Remove deleted inputs. - for (let i = this.itemCount_; this.getInput('ARG' + i); i++) { + for (let i = this.arguments_.length; this.getInput('ARG' + i); i++) { this.removeInput('ARG' + i); } // Add 'with:' if there are parameters, remove otherwise.