From a8b3192b0ef406e0d2dd76c46469148e7edd52dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 9 Sep 2020 15:37:57 +0200 Subject: [PATCH] :bug: Fix UGen.op() --- src/lib/ugen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ugen.c b/src/lib/ugen.c index 63f3584d..ff9231a1 100644 --- a/src/lib/ugen.c +++ b/src/lib/ugen.c @@ -256,7 +256,7 @@ static MFUN(ugen_channel) { } static MFUN(ugen_get_op) { - *(m_uint*)RETURN = UGEN(o)->op; + *(m_uint*)RETURN = UGEN(o)->op + 1; } ANN static void set_op(const UGen u, const uint f) { @@ -271,7 +271,7 @@ static MFUN(ugen_set_op) { const m_int i = *(m_int*)MEM(SZ_INT); if(i >= 1 && i <= 4) set_op(UGEN(o), i-1); - *(m_int*)RETURN = i; + *(m_int*)RETURN = UGEN(o)->op + 1; } static MFUN(ugen_get_last) { -- 2.43.0