aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rwxr-xr-xgui/envgen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/envgen.c b/gui/envgen.c
index bc33708..01e3456 100755
--- a/gui/envgen.c
+++ b/gui/envgen.c
@@ -202,7 +202,9 @@ void envgen_release(t_envgen* x) {
static void envgen_sustain(t_envgen *x, t_floatarg f)
{
if (f > 0 && f < x->last_state)
- x->sustain_state = f;
+ x->sustain_state = f;
+ else
+ post("ERROR: sustain value not betweem 0 and %f",x->last_state);
}