mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 06:49:28 -05:00
fix: iw5 leaderboard track type reading
This commit is contained in:
@ -42,10 +42,10 @@ namespace
|
||||
}
|
||||
|
||||
private:
|
||||
static bool CreateTrackTypeFlagsFromJson(const JsonLeaderboardDef& jLeaderboardDef, int& gameFlags)
|
||||
static bool CreateTrackTypeFlagsFromJson(const JsonLeaderboardDef& jLeaderboardDef, int& trackTypeFlags)
|
||||
{
|
||||
for (const auto gameFlag : jLeaderboardDef.trackTypes)
|
||||
gameFlags |= gameFlag;
|
||||
for (const auto trackType : jLeaderboardDef.trackTypes)
|
||||
trackTypeFlags |= 1 << trackType;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user