diff --git a/front/src/Phaser/Game/ActivatablesManager.ts b/front/src/Phaser/Game/ActivatablesManager.ts index b41c5a72..7f337cda 100644 --- a/front/src/Phaser/Game/ActivatablesManager.ts +++ b/front/src/Phaser/Game/ActivatablesManager.ts @@ -76,6 +76,7 @@ export class ActivatablesManager { const currentPlayerPos = this.currentPlayer.getDirectionalActivationPosition( this.directionalActivationPositionShift ); + this.activatableObjectsDistances.clear(); for (const object of objects) { const distance = MathUtils.distanceBetween(currentPlayerPos, object.getPosition()); this.activatableObjectsDistances.set(object, distance);