X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/950f83d0e71dc886fcf5be9889796c5b2a85fa4c..f61a5ebd00d4620af70c3780ba821f5af68def1c:/Model/src/splitter.cpp diff --git a/Model/src/splitter.cpp b/Model/src/splitter.cpp index 4d4497e..7afa150 100644 --- a/Model/src/splitter.cpp +++ b/Model/src/splitter.cpp @@ -83,6 +83,11 @@ void Splitter::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 << std::endl; updated = false; }