mirror of
https://github.com/mordentral/AdvancedSessionsPlugin.git
synced 2025-10-23 00:14:24 +00:00
Added extra validity check to IsValid for pointer versions of FBPUniqueNetID
Former-commit-id: c0d93e9fd578c181f763a3426acbfe1ad4d4d1e2
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
#include "BlueprintDataDefinitions.generated.h"
|
#include "BlueprintDataDefinitions.generated.h"
|
||||||
|
|
||||||
UENUM(BlueprintType)
|
UENUM(BlueprintType)
|
||||||
enum EBPUserPrivileges
|
enum class EBPUserPrivileges : uint8
|
||||||
{
|
{
|
||||||
/** Whether the user can play at all, online or offline - may be age restricted */
|
/** Whether the user can play at all, online or offline - may be age restricted */
|
||||||
CanPlay,
|
CanPlay,
|
||||||
@@ -169,7 +169,7 @@ public:
|
|||||||
|
|
||||||
bool IsValid() const
|
bool IsValid() const
|
||||||
{
|
{
|
||||||
if (bUseDirectPointer && UniqueNetIdPtr != nullptr)
|
if (bUseDirectPointer && UniqueNetIdPtr != nullptr && UniqueNetIdPtr->IsValid())
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user