diff --git a/scripts/zm/replaced/_zm_gametype.gsc b/scripts/zm/replaced/_zm_gametype.gsc index 67574514..957f4c60 100644 --- a/scripts/zm/replaced/_zm_gametype.gsc +++ b/scripts/zm/replaced/_zm_gametype.gsc @@ -418,8 +418,8 @@ do_team_change() { if (!level.allow_teamchange) { - teamplayers = countplayers(self.pers["team"]); - otherteamplayers = countplayers(getotherteam(self.pers["team"])); + teamplayers = get_players(self.pers["team"]).size; + otherteamplayers = get_players(getotherteam(self.pers["team"])).size; if (teamplayers - 1 <= otherteamplayers) { diff --git a/scripts/zm/zgrief/zgrief_reimagined.gsc b/scripts/zm/zgrief/zgrief_reimagined.gsc index dc63b433..fa16f330 100644 --- a/scripts/zm/zgrief/zgrief_reimagined.gsc +++ b/scripts/zm/zgrief/zgrief_reimagined.gsc @@ -606,7 +606,7 @@ grief_onplayerdisconnect(disconnecting_player) } } - count = countplayers(disconnecting_player.team) - 1; + count = get_players(disconnecting_player.team).size - 1; if (count <= 0) {