X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6260d187764dc644d699e1a53454f7efdcc682df..cef6554994ae17d8f56c9245ad2c10c7cf39af8c:/src/mc/api/ActorState.hpp diff --git a/src/mc/api/ActorState.hpp b/src/mc/api/ActorState.hpp index 2e8e136e8c..ed40454646 100644 --- a/src/mc/api/ActorState.hpp +++ b/src/mc/api/ActorState.hpp @@ -164,7 +164,8 @@ public: const std::vector>& get_enabled_transitions() const { - return this->pending_transitions_; + static const auto no_enabled_transitions = std::vector>(); + return this->is_enabled() ? this->pending_transitions_ : no_enabled_transitions; }; };