aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flattr_ed.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/source/flattr_ed.cpp')
-rw-r--r--externals/grill/flext/source/flattr_ed.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/externals/grill/flext/source/flattr_ed.cpp b/externals/grill/flext/source/flattr_ed.cpp
index d8883005..dc2cc9d1 100644
--- a/externals/grill/flext/source/flattr_ed.cpp
+++ b/externals/grill/flext/source/flattr_ed.cpp
@@ -723,8 +723,10 @@ bool flext_base::cb_AttrDialog(flext_base *th,int argc,const t_atom *argv)
a.SetInit(true);
a.SetInitValue(icnt,argv+ioffs);
*/
- if(!a)
- th->attrdata->insert(aname,a = new AttrData);
+ if(!a) {
+ AttrData *old = th->attrdata->insert(aname,a = new AttrData);
+ FLEXT_ASSERT(!old);
+ }
a->SetSave(sv == 2);
a->SetInit(true);