Fixed GetPlayedWith

This commit is contained in:
Garry Newman 2019-05-01 13:22:50 +01:00
parent 8d5f140e09
commit cf0e3417de

View File

@ -127,9 +127,9 @@ namespace Steamworks
public static IEnumerable<Friend> GetPlayedWith() public static IEnumerable<Friend> GetPlayedWith()
{ {
for ( int i = 0; i < Internal.GetFriendCount( (int)FriendFlags.Blocked ); i++ ) for ( int i = 0; i < Internal.GetCoplayFriendCount(); i++ )
{ {
yield return new Friend( Internal.GetFriendByIndex( i, 0xFFFF ) ); yield return new Friend( Internal.GetCoplayFriend( i ) );
} }
} }