Fresh: fix not all meals being added
This commit is contained in:
parent
3b6a53aff1
commit
629c373ea1
@ -108,7 +108,7 @@ func (restaurant *FreshRestaurant) Parse() {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
for ind, meal := range meals[i] {
|
for ind, meal := range meals[i] {
|
||||||
if ind >= len(prices) {
|
if ind >= len(prices[i]) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
restaurant.menus[i].Add(ind == 0, meal, "", prices[i][ind])
|
restaurant.menus[i].Add(ind == 0, meal, "", prices[i][ind])
|
||||||
|
Loading…
Reference in New Issue
Block a user