From 2ff970101dc5b7f6b164bb9a2b3e1b4d48da823c Mon Sep 17 00:00:00 2001 From: kremsy Date: Thu, 24 Apr 2014 22:03:36 +0200 Subject: [PATCH] vote fix --- application/plugins/CustomVotes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/plugins/CustomVotes.php b/application/plugins/CustomVotes.php index 1b830f77..ed625230 100644 --- a/application/plugins/CustomVotes.php +++ b/application/plugins/CustomVotes.php @@ -469,7 +469,7 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP $timeUntilExpire = $this->currentVote->expireTime - time(); $this->showVoteWidget($timeUntilExpire, $votePercentage); - $playerCount = count($this->maniaControl->playerManager->getPlayers()); + $playerCount = $this->maniaControl->playerManager->getPlayerCount(); $playersVoteRatio = (100 / $playerCount * $this->currentVote->getVoteCount()) / 100; //Check if vote is over