From 440a9219807b8b640bb171988732bd763a261504 Mon Sep 17 00:00:00 2001 From: "Such Meme, Many Skill" Date: Wed, 1 Apr 2020 19:43:37 +0200 Subject: [PATCH] small fixes --- source/tegraexplorer/script/functions.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/tegraexplorer/script/functions.c b/source/tegraexplorer/script/functions.c index 7c6bf85..4cc42fb 100644 --- a/source/tegraexplorer/script/functions.c +++ b/source/tegraexplorer/script/functions.c @@ -107,12 +107,19 @@ int part_if(){ getfollowingchar('{'); + if (!condition) + skipbrackets(); + + return 0; + + /* if (condition) return 0; else { skipbrackets(); return 0; } + */ } int part_Math(){ @@ -130,7 +137,7 @@ int part_Math(){ case '*': return left * right; case '/': - return left * right; + return left / right; } return -1; }