JSAction base property should be eweak as it creates a circular reference with base...
[enjoyable.git] / SubAction.m
index 07011ca..45ad4ea 100644 (file)
@@ -9,11 +9,7 @@
 
 #import "SubAction.h"
 
-@implementation SubAction {
-       BOOL active;
-}
-
-@synthesize active;
+@implementation SubAction
 
 - (id)initWithIndex:(int)newIndex name:(NSString *)newName base:(JSAction *)newBase {
        if ((self = [super init])) {
@@ -25,7 +21,7 @@
 }
 
 -(NSString*) stringify {
-       return [[NSString alloc] initWithFormat: @"%@~%d", [base stringify], self.index];
+       return [[NSString alloc] initWithFormat: @"%@~%d", [self.base stringify], self.index];
 }
 
 @end