mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-11 05:19:50 +01:00
Fix NavigationObstacle not registering to default navigation map
This commit is contained in:
parent
a3ed238e40
commit
dbd2b16a35
@ -135,7 +135,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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,7 +142,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 New Issue
Block a user