Merge pull request #286 from LukasKastern/master

Fixed GetFriends returning blocked friends
This commit is contained in:
Garry Newman 2019-07-04 09:18:08 +01:00 committed by GitHub
commit 4fafe33a93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,7 @@ namespace Steamworks
{
for ( int i=0; i<Internal.GetFriendCount( (int) FriendFlags.Immediate ); i++ )
{
yield return new Friend( Internal.GetFriendByIndex( i, 0xFFFF ) );
yield return new Friend( Internal.GetFriendByIndex( i, (int)FriendFlags.Immediate ) );
}
}
@ -122,7 +122,7 @@ namespace Steamworks
{
for ( int i = 0; i < Internal.GetFriendCount( (int)FriendFlags.Blocked ); i++ )
{
yield return new Friend( Internal.GetFriendByIndex( i, 0xFFFF ) );
yield return new Friend( Internal.GetFriendByIndex( i, (int)FriendFlags.Blocked) );
}
}