Added extra validity check to IsValid for pointer versions of FBPUniqueNetID

Former-commit-id: c0d93e9fd578c181f763a3426acbfe1ad4d4d1e2
This commit is contained in:
morden
2017-02-12 18:49:50 -05:00
parent db2ab652b4
commit 7383733d45

View File

@@ -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;
} }