Skip to content

Commit

Permalink
Merge pull request inkle#646 from russellquinn/master
Browse files Browse the repository at this point in the history
Fix for broken divert not-equals operator
  • Loading branch information
joethephish authored Feb 19, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents e2a15d2 + 313b08f commit f254988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ink-engine-runtime/NativeFunctionCall.cs
Original file line number Diff line number Diff line change
@@ -424,7 +424,7 @@ static void GenerateNativeFunctionsIfNecessary()
return d1.Equals (d2);
};
BinaryOp<Path> divertTargetsNotEqual = (Path d1, Path d2) => {
return d1.Equals (d2);
return !d1.Equals (d2);
};
AddOpToNativeFunc (Equal, 2, ValueType.DivertTarget, divertTargetsEqual);
AddOpToNativeFunc (NotEquals, 2, ValueType.DivertTarget, divertTargetsNotEqual);

0 comments on commit f254988

Please sign in to comment.