Fix NavigationObstacle not registering to default navigation map
This commit is contained in:
parent
7104647c65
commit
fba5a4ab9a
2 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,7 @@ NavigationObstacle2D::~NavigationObstacle2D() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void NavigationObstacle2D::set_navigation(Navigation2D *p_nav) {
|
void NavigationObstacle2D::set_navigation(Navigation2D *p_nav) {
|
||||||
if (navigation == p_nav) {
|
if (navigation == p_nav && navigation != nullptr) {
|
||||||
return; // Pointless
|
return; // Pointless
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -140,7 +140,7 @@ NavigationObstacle::~NavigationObstacle() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void NavigationObstacle::set_navigation(Navigation *p_nav) {
|
void NavigationObstacle::set_navigation(Navigation *p_nav) {
|
||||||
if (navigation == p_nav) {
|
if (navigation == p_nav && navigation != nullptr) {
|
||||||
return; // Pointless
|
return; // Pointless
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue