Skip to content

Commit

Permalink
Use stl array
Browse files Browse the repository at this point in the history
  • Loading branch information
ramon-bernardo committed Oct 5, 2024
1 parent 0065b9e commit 35e0ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quadtree.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class QuadTree

virtual bool is_leaf() = 0;

std::unique_ptr<QuadTree> nodes[4] = {};
std::array<std::unique_ptr<QuadTree>, 4> nodes = {};
};

static constexpr int32_t FLOOR_BITS = 3;
Expand Down

0 comments on commit 35e0ee0

Please sign in to comment.