Skip to content

Commit

Permalink
fix get_xuid
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterSquire committed Jul 19, 2024
1 parent 8e27477 commit 954c6c0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/global/Global.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,10 @@ namespace AlphaRing::Global {
Profile_t();

__int64 get_xuid(int index) const {
if (!b_override || index >= player_count)
return 0;

if (!index && !b_override_player0)
return profiles[0].xuid;

if (!b_override || index >= player_count)
return 0;
return profiles[index].id;
}

Expand Down

0 comments on commit 954c6c0

Please sign in to comment.