Skip to content

Commit

Permalink
Sluicebox: fix logic
Browse files Browse the repository at this point in the history
Fixes LogicalAnd and LogicalOr when used within an N-ary comparison.
  • Loading branch information
Kawa-oneechan committed May 5, 2024
1 parent 25cac82 commit c82cf46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SCICompanionLib/Src/Compile/Compile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2347,6 +2347,7 @@ CodeResult NaryOp::OutputByteCode(CompileContext &context) const
// 2: pprev (puts 2 on stack)
// 3: load in acc

declare_conditional isCondition(context, false);
branch_block blockSuccess(context, BranchBlockIndex::Failure);
for (size_t i = 1; i < _segments.size(); i++)
{
Expand Down

0 comments on commit c82cf46

Please sign in to comment.