X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/950f83d0e71dc886fcf5be9889796c5b2a85fa4c..5e9414c4a70c6f2a33f399dd1f92a3adf3fe73ea:/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; }