From 1783d7818350035fb8f0e38801f7c84f2f527296 Mon Sep 17 00:00:00 2001 From: falsycat Date: Sun, 6 Oct 2019 00:00:00 +0000 Subject: [PATCH] [fix] Fixed a fucking mistake. --- sjscript/src/sjscript/func.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sjscript/src/sjscript/func.d b/sjscript/src/sjscript/func.d index 3b51752..4d1b2b8 100644 --- a/sjscript/src/sjscript/func.d +++ b/sjscript/src/sjscript/func.d @@ -36,7 +36,7 @@ float CallFunction(string name, float[] args) { // ---- conditional switch case "step": EnforceArgs!2; return args[1] > args[0]? 1: 0; - case "clamp": EnforceArgs!3; return clamp(args[0], args[1], args[3]); + case "clamp": EnforceArgs!3; return clamp(args[0], args[1], args[2]); default: throw new Exception("unknown exception"); }