Merge pull request #66530 from timothyqiu/navobs
This commit is contained in:
commit
d3662d0e23
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue