X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1c679f3a3f8d3f08f42d80e673180664239354c6..af45246075b3fc6bc43782309f9320974d5e222d:/src/surf/instr_routing.cpp?ds=sidebyside diff --git a/src/surf/instr_routing.cpp b/src/surf/instr_routing.cpp index 32a7294a77..95015428d1 100644 --- a/src/surf/instr_routing.cpp +++ b/src/surf/instr_routing.cpp @@ -314,9 +314,9 @@ void instr_new_user_variable_type(std::string father_type, std::string new_typen static void recursiveNewUserStateType(std::string father_type, std::string new_typename, simgrid::instr::Type* root) { - if (root->getName() == father_type) { + if (root->getName() == father_type) root->getOrCreateStateType(new_typename); - } + for (auto elm : root->children_) recursiveNewUserStateType(father_type, new_typename, elm.second); }