X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/950f83d0e71dc886fcf5be9889796c5b2a85fa4c..f61a5ebd00d4620af70c3780ba821f5af68def1c:/Model/src/conduct.cpp 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; }