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:
|
private:
|
||||||
static bool CreateTrackTypeFlagsFromJson(const JsonLeaderboardDef& jLeaderboardDef, int& gameFlags)
|
static bool CreateTrackTypeFlagsFromJson(const JsonLeaderboardDef& jLeaderboardDef, int& trackTypeFlags)
|
||||||
{
|
{
|
||||||
for (const auto gameFlag : jLeaderboardDef.trackTypes)
|
for (const auto trackType : jLeaderboardDef.trackTypes)
|
||||||
gameFlags |= gameFlag;
|
trackTypeFlags |= 1 << trackType;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user