diff --git a/restaurants/padagali.cpp b/restaurants/padagali.cpp index 3bad63b..d4416d9 100644 --- a/restaurants/padagali.cpp +++ b/restaurants/padagali.cpp @@ -29,7 +29,8 @@ void LunchRest::PadagaliRestaurant::parse() { auto menu_index = dayToNum(nodeToText(days[0]->find("./h3/text()")[0])); if(menu_index == -1) return; - for(int i = 0; i < 5-menu_index; i++) { + auto max_div = 5 - menu_index; + for(int i = 0; i < max_div; i++) { auto day = days[i]; auto meals = day->find("./div"); for(auto &meal : meals) {