mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 12:26:59 +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) {
|
||||
if (navigation == p_nav) {
|
||||
if (navigation == p_nav && navigation != nullptr) {
|
||||
return; // Pointless
|
||||
}
|
||||
|
||||
|
@ -142,7 +142,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
Block a user