Implemented relations displaying mode
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user