use rankID as priority

This commit is contained in:
GenZmeY 2021-07-12 00:34:14 +03:00
parent f3d2c7a5f1
commit aa22ff296b

View File

@ -177,7 +177,7 @@ private reliable client function FindMyRankInSteamGroups()
`callstack(); `callstack();
foreach SteamGroupRelations(SteamGroupRel) foreach SteamGroupRelations(SteamGroupRel)
if (SW.CheckPlayerGroup(SteamGroupRel.UID)) if (SW.CheckPlayerGroup(SteamGroupRel.UID) && SteamGroupRel.RankID > RankRelation.RankID)
RankRelation.RankID = SteamGroupRel.RankID; RankRelation.RankID = SteamGroupRel.RankID;
if (RankRelation.RankID != INDEX_NONE) if (RankRelation.RankID != INDEX_NONE)