mirror of
https://github.com/mordentral/AdvancedSessionsPlugin.git
synced 2025-10-22 16:04:18 +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"
|
||||
|
||||
UENUM(BlueprintType)
|
||||
enum EBPUserPrivileges
|
||||
enum class EBPUserPrivileges : uint8
|
||||
{
|
||||
/** Whether the user can play at all, online or offline - may be age restricted */
|
||||
CanPlay,
|
||||
@@ -169,7 +169,7 @@ public:
|
||||
|
||||
bool IsValid() const
|
||||
{
|
||||
if (bUseDirectPointer && UniqueNetIdPtr != nullptr)
|
||||
if (bUseDirectPointer && UniqueNetIdPtr != nullptr && UniqueNetIdPtr->IsValid())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user