Skip to content

Commit

Permalink
Merge pull request #66530 from timothyqiu/navobs
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored Sep 28, 2022
2 parents 7104647 + fba5a4a commit d3662d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scene/2d/navigation_obstacle_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ NavigationObstacle2D::~NavigationObstacle2D() {
}

void NavigationObstacle2D::set_navigation(Navigation2D *p_nav) {
if (navigation == p_nav) {
if (navigation == p_nav && navigation != nullptr) {
return; // Pointless
}

Expand Down
2 changes: 1 addition & 1 deletion scene/3d/navigation_obstacle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ NavigationObstacle::~NavigationObstacle() {
}

void NavigationObstacle::set_navigation(Navigation *p_nav) {
if (navigation == p_nav) {
if (navigation == p_nav && navigation != nullptr) {
return; // Pointless
}

Expand Down

0 comments on commit d3662d0

Please sign in to comment.