[Gridflow-cvs] [svn] commit: r6144 - /trunk/src/gridflow.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Aug 16 11:49:15 EDT 2010


Author: matju
Date: Mon Aug 16 11:49:12 2010
New Revision: 6144

Log:
don't send to nonexistent inlets

Modified:
    trunk/src/gridflow.cxx

Modified: trunk/src/gridflow.cxx
==============================================================================
--- trunk/src/gridflow.cxx (original)
+++ trunk/src/gridflow.cxx Mon Aug 16 11:49:12 2010
@@ -580,7 +580,7 @@
 		if (argv[2].a_type==A_SYMBOL)  {m=method_lookup(bself,winlet,&s_symbol ); if(m){m(self,argc,argv+2); return;}}
 		if (argv[2].a_type==A_POINTER) {m=method_lookup(bself,winlet,&s_pointer); if(m){m(self,argc,argv+2); return;}}
 	    } else if (winlet==0) {
-		for (int i=argc-1; i>=0; i--) { // not exactly same order as pd's obj_list...
+		for (int i=min(argc,self->ninlets)-1; i>=0; i--) { // not exactly same order as pd's obj_list...
 		    if (argv[2+i].a_type==A_FLOAT)   BFObject_anything(bself,i,&s_float  ,1,argv+2+i);
 		    if (argv[2+i].a_type==A_SYMBOL)  BFObject_anything(bself,i,&s_symbol ,1,argv+2+i);
 		    if (argv[2+i].a_type==A_POINTER) BFObject_anything(bself,i,&s_pointer,1,argv+2+i);



More information about the Gridflow-cvs mailing list