o Copy values to be on the safe side
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -59,8 +59,8 @@ | @@ -59,8 +59,8 @@ | ||
59 | - (id)initWithTile:(RMTile)aTile at:(CGRect)aScreenLocation | 59 | - (id)initWithTile:(RMTile)aTile at:(CGRect)aScreenLocation |
60 | { | 60 | { |
61 | if (!(self = [super init])) return nil; | 61 | if (!(self = [super init])) return nil; |
62 | - self.tile = aTile; | ||
63 | - self.screenLocation = aScreenLocation; | 62 | + self.tile = RMTileMake(aTile.x, aTile.y, aTile.zoom); |
63 | + self.screenLocation = CGRectMake(aScreenLocation.origin.x, aScreenLocation.origin.y, aScreenLocation.size.width, aScreenLocation.size.height); | ||
64 | return self; | 64 | return self; |
65 | } | 65 | } |
66 | 66 |
-
Please register or login to post a comment