diff --git a/src/effects/PitchEffect.js b/src/effects/PitchEffect.js index faed074..d93c35a 100644 --- a/src/effects/PitchEffect.js +++ b/src/effects/PitchEffect.js @@ -72,7 +72,9 @@ PitchEffect.prototype.updatePlayers = function (players) { if (!players) return; for (var md5 in players) { - this.updatePlayer(players[md5]); + if (players.hasOwnProperty(md5)) { + this.updatePlayer(players[md5]); + } } };