Skip to content

Commit

Permalink
Don't include null people in the list
Browse files Browse the repository at this point in the history
  • Loading branch information
CarbonNeuron committed Jan 30, 2021
1 parent 460d39a commit c060277
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions AmongUsCapture/Memory/GameMemReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ private IEnumerable<PlayerInfo> GetPlayers(ProcessMemory memInstance) {
var Players = new List<PlayerInfo>(playerCount);
for (var i = 0; i < playerCount; i++) {
var pi = CurrentOffsets.isEpic ? (PlayerInfo) memInstance.Read<EpicPlayerInfo>(playerAddrPtr, 0, 0) : memInstance.Read<SteamPlayerInfo>(playerAddrPtr, 0, 0);
if(pi.GetPlayerName() is null || pi.GetPlayerName() == "") continue;
playerAddrPtr += CurrentOffsets.AddPlayerPtr;
Players.Add(pi);
}
Expand Down

0 comments on commit c060277

Please sign in to comment.