diff --git a/Sources/Model/Classes/Carte.cs b/Sources/Model/Classes/Carte.cs index ea40c19..928087b 100644 --- a/Sources/Model/Classes/Carte.cs +++ b/Sources/Model/Classes/Carte.cs @@ -102,7 +102,7 @@ namespace Model.Classes private string lienImage; public Carte(string nom, string pouvoir, string strategie, int? note, string lienImage, string description) { - Nom = nom; + this.nom = nom; this.description = description; this.pouvoir = pouvoir; this.strategie = strategie; @@ -119,7 +119,7 @@ namespace Model.Classes if (object.ReferenceEquals(right, null)) return false; if (object.ReferenceEquals(right, this)) return true; if (this.GetType() != right.GetType()) return false; - return this.Equals(right as Carte); + return this.Equals((Carte)right); } public bool Equals(Carte other)