]> rtime.felk.cvut.cz Git - eurobot/public.git/blobdiff - src/robofsm/common-states.h
robofsm: fix problem with memory
[eurobot/public.git] / src / robofsm / common-states.h
index a61d9863301fccbe25b886be800fa352ca373afa..1d8fbcec1172ac4310420ef0b9142af84c1961c8 100644 (file)
@@ -288,7 +288,7 @@ struct move_around : TimedSimpleState<move_around, competing> {
        }
        sc::result react(const evMotionError&) {
 //             DBG_PRINT_EVENT("can not access survey point");
-               return discard_event();
+               return transit<survey>();
        }
        typedef mpl::list<
                sc::transition<evMotionDone, survey>,