Fixed duplicating lobby results (forgot to use second array second time around).

Changed HasOnlineSubsystem to use a better function

Not running second search for AllServers enum when the subsystem isn't steam
Steam is the only subsystem that actually uses the flags that deal with that.


Former-commit-id: b07eadc87eaf82584ec63b6b4e91ace69fd5023f
This commit is contained in:
morden
2017-02-25 15:04:46 -05:00
parent cc9cc9b390
commit e9523733c1
4 changed files with 80 additions and 47 deletions

View File

@@ -296,7 +296,7 @@ void UAdvancedSessionsLibrary::GetSessionPropertyFloat(const TArray<FSessionProp
bool UAdvancedSessionsLibrary::HasOnlineSubsystem(FName SubSystemName)
{
return((IOnlineSubsystem::Get(SubSystemName) != NULL));
return IOnlineSubsystem::DoesInstanceExist(SubSystemName);
}
void UAdvancedSessionsLibrary::GetNetPlayerIndex(APlayerController *PlayerController, int32 &NetPlayerIndex)