mirror of
https://github.com/mordentral/AdvancedSessionsPlugin.git
synced 2025-10-22 16:04:18 +00:00
added comparison operator for FBPUniqueNetID
added comparison operator for FBPUniqueNetID, so that STD functions will work with it.
This commit is contained in:
@@ -200,6 +200,17 @@ public:
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// Adding in a compare operator so that std functions will work with this struct
|
||||
FORCEINLINE bool operator==(const FBPUniqueNetId& Other) const
|
||||
{
|
||||
return (IsValid() && Other.IsValid() && (*GetUniqueNetId() == *Other.GetUniqueNetId()));
|
||||
}
|
||||
|
||||
FORCEINLINE bool operator!=(const FBPUniqueNetId& Other) const
|
||||
{
|
||||
return !(IsValid() && Other.IsValid() && (*GetUniqueNetId() == *Other.GetUniqueNetId()));
|
||||
}
|
||||
|
||||
FBPUniqueNetId()
|
||||
{
|
||||
bUseDirectPointer = false;
|
||||
|
Reference in New Issue
Block a user