Fix under-retention (related to 5636606)

This commit is contained in:
cim 2013-07-04 12:09:22 +01:00
parent e444ba7f52
commit 321249c2e5

View File

@ -5998,7 +5998,7 @@ static GLfloat scripted_color[4] = { 0.0, 0.0, 0.0, 0.0}; // to be defined by s
behaviour = [previousCondition oo_intForKey:@"behaviour"];
[_primaryTarget release];
_primaryTarget = [previousCondition objectForKey:@"primaryTarget"];
_primaryTarget = [[previousCondition objectForKey:@"primaryTarget"] weakRetain];
desired_range = [previousCondition oo_floatForKey:@"desired_range"];
desired_speed = [previousCondition oo_floatForKey:@"desired_speed"];
destination = [previousCondition oo_vectorForKey:@"destination"];