]> rtime.felk.cvut.cz Git - hubacji1/rrts.git/commitdiff
Fix invalid memory read access
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Thu, 28 May 2020 11:05:56 +0000 (13:05 +0200)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Thu, 28 May 2020 13:26:50 +0000 (15:26 +0200)
src/rrts.cc

index f97c66773c45587d88b1c3ae911993f44ef9312b..43854bcfb9207b9da8b88e0ca2d4580ea46565d2 100644 (file)
@@ -331,7 +331,6 @@ bool RRTS::next()
                 return next;
         this->rewire();
         unsigned scnt = this->steered().size();
-        this->steered().erase(this->steered().begin());
         this->join_steered(&this->nodes().back());
         RRTNode *just_added = &this->nodes().back();
         while (scnt > 0) {