mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-05-09 22:14:56 +00:00
fix: iw5 leaderboard track type reading
This commit is contained in:
parent
7c5795f5bc
commit
e68877464d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user