aboutsummaryrefslogtreecommitdiffhomepage
path: root/wheelwork.lisp
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-06-29 06:34:01 -0500
committerColin Okay <colin@cicadas.surf>2022-06-29 06:34:01 -0500
commit30cf40b67c5f2bf8dcbdcbef5c6a7969d20908c6 (patch)
tree7ae161182a446ce14b00410130614059763bb78d /wheelwork.lisp
parent6d5da708925afcb935e9c99ea104caa548dc7894 (diff)
[bugfix] add-unit wasn't adding the container to the unit
Diffstat (limited to 'wheelwork.lisp')
-rw-r--r--wheelwork.lisp9
1 files changed, 6 insertions, 3 deletions
diff --git a/wheelwork.lisp b/wheelwork.lisp
index cdfec40..6dd8f64 100644
--- a/wheelwork.lisp
+++ b/wheelwork.lisp
@@ -75,9 +75,12 @@ order). Makes sure to remove the unit from its current container if
necessary."
(when (unit-container unit)
(drop-unit unit))
- (setf (container-units container)
- (nconc (container-units container)
- (list unit)))
+ (setf
+ (container-units container)
+ (nconc (container-units container)
+ (list unit))
+
+ (unit-container unit) container)
unit)