diff --git a/Sources/CoreLibrary/Code.cs b/Sources/CoreLibrary/Code.cs index 4c00021..c23f278 100644 --- a/Sources/CoreLibrary/Code.cs +++ b/Sources/CoreLibrary/Code.cs @@ -31,7 +31,8 @@ if(NbJetons <= 0) throw new CodeTableauLesJetonsVideException(); - lesJetons[NbJetons--] = null; + lesJetons[NbJetons-1] = null; + --NbJetons; } public Jeton RecupererJeton(int indice)