X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c0dd30145e2e22a8b3e22af71d78c9964a35b798..8b9990faccec68326f014f2823ecbf3a2e3006dc:/src/mc/mc_smx.cpp diff --git a/src/mc/mc_smx.cpp b/src/mc/mc_smx.cpp index 4049cbbb70..6c8e6304b7 100644 --- a/src/mc/mc_smx.cpp +++ b/src/mc/mc_smx.cpp @@ -135,10 +135,11 @@ const char* MC_smx_actor_get_host_name(smx_actor_t actor) const char* MC_smx_actor_get_name(smx_actor_t actor) { - const simgrid::mc::RemoteSimulation* process = &mc_model_checker->get_remote_simulation(); if (mc_model_checker == nullptr) return actor->get_cname(); + const simgrid::mc::RemoteSimulation* process = &mc_model_checker->get_remote_simulation(); + simgrid::mc::ActorInformation* info = actor_info_cast(actor); if (info->name.empty()) { simgrid::xbt::string_data string_data = simgrid::xbt::string::to_string_data(actor->name_);