aboutsummaryrefslogtreecommitdiff
path: root/packages/patches/switch~_bang_crash-0.43.patch
blob: c72dc671ffeca70da0122f3fc031b184eef37ab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: d_ugen.c
===================================================================
--- d_ugen.c	(revision 13170)
+++ d_ugen.c	(working copy)
@@ -219,6 +219,11 @@
 
 static void block_bang(t_block *x)
 {
+    if (!dsp_chain) 
+    {
+        pd_error(x, "bang to block~ or switch~ with DSP off has no effect");
+        return;
+    }
     if (x->x_switched && !x->x_switchon)
     {
         t_int *ip;