Skip to content

Commit

Permalink
Actually fix the CompareEqual instruction
Browse files Browse the repository at this point in the history
KEKW
  • Loading branch information
timoschwarzer committed Aug 11, 2024
1 parent 672acff commit 4f5a63d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/Randomizer/seed/instructions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,10 @@ namespace randomizer::seed {
switch (op) {
case EqualityComparator::Equal:
memory.booleans.set(0, memory.get<T>(0) == memory.get<T>(1));
break;
return;
case EqualityComparator::NotEqual:
memory.booleans.set(0, memory.get<T>(0) != memory.get<T>(1));
break;
return;
}

throw RandoException("Invalid operator in CompareEqual instruction");
Expand Down

0 comments on commit 4f5a63d

Please sign in to comment.