]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Model/src/simulator.cpp
Mini bugfix.
[z.facultad/75.42/plaqui.git] / Model / src / simulator.cpp
index be680057c5f596a7a404f9569a4facee8d443c8e..6a85446bfa325e3130ad4c3ef1adc8ac0c92adb1 100644 (file)
@@ -597,7 +597,7 @@ void Simulator::connect_logic(LogicControl *current, xmlNodePtr nodo)
                if (xmlStrcmp(nodo->name, BAD_CAST"entrada") == 0) {
                        item = dynamic_cast<Control *>(find((char *)XML_GET_CONTENT(nodo->children)));
                        if (item != NULL) {
-                               if (dynamic_cast<Tank *>(item)) {
+                               if (dynamic_cast<Tank *>(item) != NULL) {
                                        std::string donde = (char *)xmlGetProp(nodo, BAD_CAST"id");
                                        if (donde == "inferior") {
                                                current->connect( item->get_logic_output(), IConector::IN );