From aa22ff296b64875851e71a444a174562a40b9e9d Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Mon, 12 Jul 2021 00:34:14 +0300 Subject: [PATCH] use rankID as priority --- YAS/Classes/YASRepInfo.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YAS/Classes/YASRepInfo.uc b/YAS/Classes/YASRepInfo.uc index 0fbcdb3..ac2a85d 100644 --- a/YAS/Classes/YASRepInfo.uc +++ b/YAS/Classes/YASRepInfo.uc @@ -177,7 +177,7 @@ private reliable client function FindMyRankInSteamGroups() `callstack(); foreach SteamGroupRelations(SteamGroupRel) - if (SW.CheckPlayerGroup(SteamGroupRel.UID)) + if (SW.CheckPlayerGroup(SteamGroupRel.UID) && SteamGroupRel.RankID > RankRelation.RankID) RankRelation.RankID = SteamGroupRel.RankID; if (RankRelation.RankID != INDEX_NONE)