made the default constructor call "constructsuper"
authorMatthias Kramm <kramm@quiss.org>
Sun, 29 Mar 2009 19:00:03 +0000 (21:00 +0200)
committerMatthias Kramm <kramm@quiss.org>
Sun, 29 Mar 2009 19:00:03 +0000 (21:00 +0200)
lib/as3/abc.c

index 207c277..a0994e9 100644 (file)
@@ -949,7 +949,7 @@ static pool_t*writeABC(TAG*abctag, void*code, pool_t*pool)
                 NEW(abc_method_body_t,body);array_append(file->method_bodies, NO_KEY, body);
                 // don't bother to set m->index
                 body->method = m; m->body = body;
-               if(c->superclass && c->superclass->name && !strcmp(c->superclass->name,"Object")) {
+               if(c->superclass && c->superclass->name && strcmp(c->superclass->name,"Object")) {
                    __ getlocal_0(body);
                    __ constructsuper(body, 0);
                }