X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/c0df682bb52a8bcab7c182fb45b340814b2eada8..HEAD:/Model/src/simulator.cpp diff --git a/Model/src/simulator.cpp b/Model/src/simulator.cpp index be68005..6a85446 100644 --- a/Model/src/simulator.cpp +++ b/Model/src/simulator.cpp @@ -597,7 +597,7 @@ void Simulator::connect_logic(LogicControl *current, xmlNodePtr nodo) if (xmlStrcmp(nodo->name, BAD_CAST"entrada") == 0) { item = dynamic_cast(find((char *)XML_GET_CONTENT(nodo->children))); if (item != NULL) { - if (dynamic_cast(item)) { + if (dynamic_cast(item) != NULL) { std::string donde = (char *)xmlGetProp(nodo, BAD_CAST"id"); if (donde == "inferior") { current->connect( item->get_logic_output(), IConector::IN );