aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/fllib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/source/fllib.cpp')
-rwxr-xr-xexternals/grill/flext/source/fllib.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/externals/grill/flext/source/fllib.cpp b/externals/grill/flext/source/fllib.cpp
index cd0c65d9..2d3aaa4c 100755
--- a/externals/grill/flext/source/fllib.cpp
+++ b/externals/grill/flext/source/fllib.cpp
@@ -270,8 +270,16 @@ void flext_obj::obj_add(bool lib,bool dsp,bool attr,const char *idname,const cha
va_end(marker);
}
+ // get unique class id
+#if FLEXT_SYS == FLEXT_SYS_PD
+ t_classid clid = lo->clss;
+#else
+ // in Max/MSP the t_class *value can't be used because it's possible that's it's not yet set!!
+ t_classid clid = lo;
+#endif
+
// make help reference
- flext_obj::DefineHelp(lo->clss,idname,extract(names,-1),dsp);
+ flext_obj::DefineHelp(clid,idname,extract(names,-1),dsp);
for(int ix = 0; ; ++ix) {
// in this loop register all the possible aliases of the object
@@ -296,14 +304,6 @@ void flext_obj::obj_add(bool lib,bool dsp,bool attr,const char *idname,const cha
#endif
}
- // get unique class id
-#if FLEXT_SYS == FLEXT_SYS_PD
- t_classid clid = lo->clss;
-#else
- // in Max/MSP the t_class *value can't be used because it's possible that's it's not yet set!!
- t_classid clid = lo;
-#endif
-
// call class setup function
setupfun(clid);
}