diff --git a/src/app/game-model/GameModel.ts b/src/app/game-model/GameModel.ts index 9e2a514..ac4d355 100644 --- a/src/app/game-model/GameModel.ts +++ b/src/app/game-model/GameModel.ts @@ -25,7 +25,10 @@ export class GameModel { } addGamesystem(gamesystem: Gamesystem) { - this._gamesystems.push(gamesystem); + if(this.findGamesystem(gamesystem.componentName) == undefined) { + this._gamesystems.push(gamesystem); + } + } removeGamesystem(gamesystem : Gamesystem) {