From cd3578ed9434868fab8da3031e83de5017332205 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 17 May 2002 15:14:03 +0000 Subject: 17175: Src/math.c: didn't handle parameters before a ternary expression properly. --- Src/math.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src/math.c') diff --git a/Src/math.c b/Src/math.c index e87a286fb..344670d6e 100644 --- a/Src/math.c +++ b/Src/math.c @@ -1109,6 +1109,8 @@ mathparse(int pc) } break; case QUEST: + if (stack[sp].val.type == MN_UNSET) + stack[sp].val = getnparam(stack[sp].lval); q = (stack[sp].val.type == MN_FLOAT) ? (zlong)stack[sp].val.u.d : stack[sp].val.u.l; -- cgit 1.4.1