diff --git a/src/MangaMap/Views/FicheAnime.xaml.cs b/src/MangaMap/Views/FicheAnime.xaml.cs index 033403f..98cb6d4 100644 --- a/src/MangaMap/Views/FicheAnime.xaml.cs +++ b/src/MangaMap/Views/FicheAnime.xaml.cs @@ -274,6 +274,12 @@ namespace MangaMap.Views List x = new List(); int nb = Convert.ToInt32(nombreEP.Text); + if (nb < 0 || nb > AnimeModel.NbEpisodes) + { + await DisplayAlert("Erreur", "Nombre d'épisodes vus incorrecte.", "OK"); + return; + } + if (my_manager.UtilisateurActuel.notesNombres.ContainsKey(AnimeModel.Nom)) { my_manager.UtilisateurActuel.notesNombres.Remove(AnimeModel.Nom, out x);