diff --git a/ProjectObsidian/ProtoFlux/Math/FibonacciNode.cs b/ProjectObsidian/ProtoFlux/Math/FibonacciNode.cs index 5c96c5a..457c97c 100644 --- a/ProjectObsidian/ProtoFlux/Math/FibonacciNode.cs +++ b/ProjectObsidian/ProtoFlux/Math/FibonacciNode.cs @@ -21,7 +21,10 @@ protected override int Compute(FrooxEngineContext context) private int Fibonacci(int n) { if (n < 0) - throw new ArgumentException("Negative numbers are not allowed."); + { + UniLog.Log("Negative numbers are not allowed."); + return -1; // Special error value + } if (n == 0) return 0; if (n == 1)