Skip to content

Commit b6bbc9c

Browse files
committed
Fix a typo in list contains item block
1 parent 5027103 commit b6bbc9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blocks/listblocks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@ void ListBlocks::compileLengthOfList(Compiler *compiler)
9090
void ListBlocks::compileListContainsItem(Compiler *compiler)
9191
{
9292
compiler->addInput(ITEM);
93-
compiler->addInstruction(vm::OP_LIST_LENGTH, { compiler->listIndex(compiler->field(LIST)->valuePtr()) });
93+
compiler->addInstruction(vm::OP_LIST_CONTAINS, { compiler->listIndex(compiler->field(LIST)->valuePtr()) });
9494
}

0 commit comments

Comments
 (0)