X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=game.js;fp=game.js;h=4649b56704a41f8c103e492c09560344cfadb299;hb=13553d82c4746db09ce801421f0e9a5efcc300bb;hp=5a49b6bdd52b5aaf753ca3469e14618cd1548c9a;hpb=9334a439e495c088d088f986a2f73138530f1dbf;p=lmno-server diff --git a/game.js b/game.js index 5a49b6b..4649b56 100644 --- a/game.js +++ b/game.js @@ -23,7 +23,7 @@ class Player { /* Returns the number of remaining connections after this one is removed. */ remove_connection(connection) { - this.connections.filter(c => c !== connection); + this.connections = this.connections.filter(c => c !== connection); return this.connections.length; }