summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--starling/node.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/starling/node.scm b/starling/node.scm
index 7b0db3b..88790fa 100644
--- a/starling/node.scm
+++ b/starling/node.scm
@@ -186,8 +186,8 @@ represented as a ratio in the range [0, 1]."
(let ((p (parent node)))
(unless p
(error "node has no parent" node))
- (set! (children parent) (delq node (children parent)))
- (hashq-remove! (children-map parent) (name node))
+ (set! (children p) (delq node (children p)))
+ (hashq-remove! (children-map p) (name node))
;; Detaching deactives the node and all of its children.
(when (active? node)
(deactivate node))