X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/950f83d0e71dc886fcf5be9889796c5b2a85fa4c..ed2cb04e907c90998221e00fcac1ded840ce693c:/Model/src/conduct.cpp?ds=inline diff --git a/Model/src/conduct.cpp b/Model/src/conduct.cpp index f278904..bc0e3f3 100644 --- a/Model/src/conduct.cpp +++ b/Model/src/conduct.cpp @@ -63,6 +63,11 @@ void Conduct::simulate() return; } + std::list::iterator i = in_list.begin(); + if (i != in_list.end()) { + PlantItem *o = (PlantItem *)(*i); + set_color( o->get_color() ); + } std::cout << name << "::Flujo actual = " << actual_flow << " de " << max_flow << std::endl; updated = false; }