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