From 54a6651ef163f9d9caeccd11a2c949d15f99e91d Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 15 Feb 2010 06:43:20 +0000 Subject: fixed crash bug when banging switch~ when DSP is off, #2929284 svn path=/trunk/; revision=13172 --- packages/patches/switch~_bang_crash-0.43.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packages/patches/switch~_bang_crash-0.43.patch (limited to 'packages') diff --git a/packages/patches/switch~_bang_crash-0.43.patch b/packages/patches/switch~_bang_crash-0.43.patch new file mode 100644 index 00000000..c72dc671 --- /dev/null +++ b/packages/patches/switch~_bang_crash-0.43.patch @@ -0,0 +1,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; -- cgit v1.2.1