From 4f5a63d9fd7a849d10cfcf7f5f345d3dde67ad52 Mon Sep 17 00:00:00 2001 From: Timo Schwarzer Date: Sun, 11 Aug 2024 17:33:49 +0200 Subject: [PATCH] Actually fix the CompareEqual instruction KEKW --- projects/Randomizer/seed/instructions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/Randomizer/seed/instructions.cpp b/projects/Randomizer/seed/instructions.cpp index 3730574b20..e0f6af4c8d 100644 --- a/projects/Randomizer/seed/instructions.cpp +++ b/projects/Randomizer/seed/instructions.cpp @@ -320,10 +320,10 @@ namespace randomizer::seed { switch (op) { case EqualityComparator::Equal: memory.booleans.set(0, memory.get(0) == memory.get(1)); - break; + return; case EqualityComparator::NotEqual: memory.booleans.set(0, memory.get(0) != memory.get(1)); - break; + return; } throw RandoException("Invalid operator in CompareEqual instruction");