Implemented relations displaying mode

This commit is contained in:
2026-04-29 23:23:20 +02:00
parent fc0341d9ad
commit 4ec32252cf
5 changed files with 37 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ pub const NodeManager = struct {
/// Deinitialises every node (pointer) within the list and then deinits the list containing the nodes itself
pub fn deinit(self: *NodeManager, allocator: std.mem.Allocator) !void {
for (self.nodes.items) |node| {
node.roads.clearRetainingCapacity();
try node.deinit(allocator);
}
self.nodes.deinit(allocator);