Merge pull request #93 from thecodingmachine/fix-recette-grp

Fix recette GRP
This commit is contained in:
David Négrier 2020-05-11 22:59:22 +02:00 committed by GitHub
commit 0daddb3669
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 23 deletions

View file

@ -422,6 +422,9 @@ export class GameScene extends Phaser.Scene implements GameSceneInterface, Creat
}
deleteGroup(groupId: string): void {
if(!this.groups.get(groupId)){
return;
}
this.groups.get(groupId).destroy();
this.groups.delete(groupId);
}