Skip to content

Commit

Permalink
Fix Out Of Bounds Access
Browse files Browse the repository at this point in the history
  • Loading branch information
Deaod committed Oct 20, 2023
1 parent c7624dd commit 7e01f0d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Classes/bbPlayer.uc
Original file line number Diff line number Diff line change
Expand Up @@ -7127,10 +7127,7 @@ function int GetForcedSkinForPlayer(PlayerReplicationInfo PRI) {
if (Settings.bSkinEnemyUseIndexMap) {
bbPRI = bbPlayerReplicationInfo(PRI);
if (bbPRI != none && bbPRI.SkinIndex >= 0) {
if (GameReplicationInfo.bTeamGame)
return Settings.SkinEnemyIndexMap[(bbPRI.Team << 4) + bbPRI.SkinIndex];
else
return Settings.SkinEnemyIndexMap[bbPRI.SkinIndex];
return Settings.SkinEnemyIndexMap[bbPRI.SkinIndex];
}
}
if (PRI.bIsFemale) {
Expand Down

0 comments on commit 7e01f0d

Please sign in to comment.