mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-03 01:19:38 +01:00
Fix NavigationObstacle2D::set_navigation.
This commit is contained in:
parent
76488d4381
commit
61bf4df2f4
@ -188,7 +188,7 @@ NavigationObstacle2D::~NavigationObstacle2D() {
|
||||
}
|
||||
|
||||
void NavigationObstacle2D::set_navigation(Navigation2D *p_nav) {
|
||||
if (navigation == p_nav) {
|
||||
if (navigation == p_nav && navigation != nullptr) {
|
||||
return; // Pointless
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user