From e5b20ac11f007ee22f832bfcdee0fa7103fa02f3 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Thu, 16 Sep 2021 23:37:15 +0200 Subject: [PATCH] Fix pruning Pruning - if acting on the external state - needs to pass the current stage (this). --- core/src/container.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/container.cpp b/core/src/container.cpp index 09f4a4ec..149e47cf 100644 --- a/core/src/container.cpp +++ b/core/src/container.cpp @@ -944,9 +944,9 @@ void FallbacksPrivate::computePropagate(){ } else { ROS_DEBUG_STREAM_NAMED("Fallbacks", "State failed to extend through any child, prune path"); - ContainerBasePrivate::onNewFailure(*children().back(), - dir == Interface::FORWARD ? &*state : nullptr, - dir == Interface::BACKWARD ? nullptr : &*state); + parent()->pimpl()->onNewFailure(*me(), + dir == Interface::FORWARD ? &*state : nullptr, + dir == Interface::BACKWARD ? nullptr : &*state); } } else {