Skip to content

Commit

Permalink
change default entry sector value from null
Browse files Browse the repository at this point in the history
  • Loading branch information
jere8184 committed Dec 11, 2024
1 parent faec07d commit 309cbf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libopenage/pathfinding/pathfinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ int Pathfinder::distance_cost(const coord::tile_delta &portal1_pos,

PortalNode::PortalNode(const std::shared_ptr<Portal> &portal) :
portal{portal},
entry_sector{NULL},
entry_sector{0},
future_cost{std::numeric_limits<int>::max()},
current_cost{std::numeric_limits<int>::max()},
heuristic_cost{std::numeric_limits<int>::max()},
Expand Down

0 comments on commit 309cbf2

Please sign in to comment.