summaryrefslogtreecommitdiff
path: root/dungeon/src/bsp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'dungeon/src/bsp.rs')
-rw-r--r--dungeon/src/bsp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/dungeon/src/bsp.rs b/dungeon/src/bsp.rs
index aaafa10..48a00e1 100644
--- a/dungeon/src/bsp.rs
+++ b/dungeon/src/bsp.rs
@@ -51,8 +51,8 @@ impl Rect {
#[derive(Debug, Clone, PartialEq, Eq)]
struct Node {
rect: Rect, // Area this node covers
- left: Option<Box<Node>>, // Left child (if not leaf)
- right: Option<Box<Node>>, // Right child (if not leaf)
+ left: Option<Box<Self>>, // Left child (if not leaf)
+ right: Option<Box<Self>>, // Right child (if not leaf)
room: Option<Rect>, // Room created in this node (if leaf)
}