From cec1e06ac02d542353a2f7f97d872f6d0a362951 Mon Sep 17 00:00:00 2001 From: McDiod Date: Mon, 27 Jan 2020 19:00:47 +0100 Subject: [PATCH] fix #55 --- functions/common/fn_updateLeaderboard.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/common/fn_updateLeaderboard.sqf b/functions/common/fn_updateLeaderboard.sqf index 6bb1feb..aa4e596 100644 --- a/functions/common/fn_updateLeaderboard.sqf +++ b/functions/common/fn_updateLeaderboard.sqf @@ -2,8 +2,8 @@ private _stats = EGVAR(missionSetup,statsArray); private _allPlayerUIDs = EGVAR(missionSetup,allPlayerUIDs); -private _allPlayingPlayers = allPlayers select {_x getVariable [QGVAR(isPlaying),false]}; -private _allPlayingPlayersScores = _allPlayingPlayers apply {[_x getVariable [QGVAR(currentScore),0],_x]}; +private _allPlayingPlayers = allPlayers select {_x getVariable [QEGVAR(missionSetup,isPlaying),false]}; +private _allPlayingPlayersScores = _allPlayingPlayers apply {[_x getVariable [QEGVAR(missionSetup,currentScore),0],_x]}; _allPlayingPlayersScores sort false; //UPDATE STATS =================================================================