Skip to content

Commit 844358f

Browse files
committed
Merge pull request #7 from nacrossweb/patch-1
Fixed bug where node was not unregistered on exit from scene
2 parents 0b87584 + 339b7a4 commit 844358f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SpriteKit-Components/SKComponentNode.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ - (void)onExit {
153153

154154
// unregister self with scene
155155
SKComponentScene* scene = SKComponentSceneForNode(self);
156-
[scene registerComponentNode:self];
156+
[scene unregisterComponentNode:self];
157157

158158
// perform onExit for all components
159159
for (id<SKComponent> component in components) {

0 commit comments

Comments
 (0)