diff --git a/cpp/models/abm/model_functions.cpp b/cpp/models/abm/model_functions.cpp index 613e9510f4..9e8a0ae78e 100644 --- a/cpp/models/abm/model_functions.cpp +++ b/cpp/models/abm/model_functions.cpp @@ -72,8 +72,7 @@ void interact(PersonalRandomNumberGenerator& personal_rng, Person& person, const auto age_receiver = person.get_age(); ScalarType mask_protection = person.get_mask_protective_factor(global_parameters); assert(person.get_cells().size() && "Person is in multiple cells. Interact logic is incorrect at the moment."); - for (auto cell_index : - person.get_cells()) { // TODO: the logic here is incorrect in case a person is in multiple cells + for (auto cell_index : person.get_cells()) { std::pair local_indiv_trans_prob[static_cast(VirusVariant::Count)]; for (uint32_t v = 0; v != static_cast(VirusVariant::Count); ++v) { VirusVariant virus = static_cast(v);