Fix duplicated loop in ResultFrame::SetDiet.