Skip to content

Commit

Permalink
Merge pull request #7 from nacrossweb/patch-1
Browse files Browse the repository at this point in the history
Fixed bug where node was not unregistered on exit from scene
  • Loading branch information
buddingmonkey committed Mar 10, 2014
2 parents 0b87584 + 339b7a4 commit 844358f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SpriteKit-Components/SKComponentNode.m
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ - (void)onExit {

// unregister self with scene
SKComponentScene* scene = SKComponentSceneForNode(self);
[scene registerComponentNode:self];
[scene unregisterComponentNode:self];

// perform onExit for all components
for (id<SKComponent> component in components) {
Expand Down

0 comments on commit 844358f

Please sign in to comment.