Commit 8c684d83 authored by Joseph NISON--GUYON's avatar Joseph NISON--GUYON
Browse files

Fixe l'erreur de compilation due à l'utilisation de la mauvaise variable

parent 03d5b7f5
......@@ -33,7 +33,7 @@ export class Creature {
this.gameProxy.defausserCarteTraque(gameId, carte);
let param = 0;
while (param < this.main.length) {
if (lieu.id === this.main[param]) {
if (carte.name === this.main[param].name) {
this.main.splice(param, 1);
}
param++;
......@@ -45,7 +45,7 @@ export class Creature {
this.gameProxy.defausserCarteTraque(gameId, carte);
let param = 0;
while (param < this.main.length) {
if (lieu.id === this.main[param]) {
if (carte.name === this.main[param].name) {
this.main.splice(param, 1);
}
param++;
......
......@@ -93,7 +93,7 @@ export class Traque {
this.gameProxy.defausserCarteSurvie(gameId, carte);
let param = 0;
while (param < this.mainSurvie.length) {
if (lieu.id === this.mainSurvie[param]) {
if (carte.name === this.main[param].name) {
this.mainSurvie.splice(param, 1);
}
param++;
......@@ -105,7 +105,7 @@ export class Traque {
this.gameProxy.defausserCarteSurvie(gameId, carte);
let param = 0;
while (param < this.mainSurvie.length) {
if (lieu.id === this.mainSurvie[param]) {
if (carte.name === this.main[param].name) {
this.mainSurvie.splice(param, 1);
}
param++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment