mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
fix: iw5 leaderboard track type reading
This commit is contained in:
parent
28465d7c64
commit
667fb49ab2
@ -41,10 +41,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