Fresh: fix not all meals being added

This commit is contained in:
zv0n 2022-10-31 17:47:19 +01:00
parent 3b6a53aff1
commit 629c373ea1

View File

@ -108,7 +108,7 @@ func (restaurant *FreshRestaurant) Parse() {
continue
}
for ind, meal := range meals[i] {
if ind >= len(prices) {
if ind >= len(prices[i]) {
break
}
restaurant.menus[i].Add(ind == 0, meal, "", prices[i][ind])