From a9691e3501cb4454b7cde54f8e55a05390b5719f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 1 Feb 2011 10:22:45 +0000 Subject: use real deviceIDs as stored in the device-list fixes the crash when setting devices svn path=/trunk/externals/iem/mediasettings/; revision=14847 --- midisettings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/midisettings.c b/midisettings.c index 018d267..4f34b24 100644 --- a/midisettings.c +++ b/midisettings.c @@ -518,7 +518,7 @@ static int midisettings_setparams_inout( int argc, t_atom*argv, t_ms_symkeys*dev break; case A_SYMBOL: // LATER: get the device-id from the device-name - dev=1+ms_symkeys_getid(devices, atom_getsymbol(argv+i)); + dev=ms_symkeys_getid(devices, atom_getsymbol(argv+i)); if(dev<0) dev=0; break; default: -- cgit v1.2.1