mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 19:02:21 +01:00
Dude 💀
This commit is contained in:
@@ -13,6 +13,19 @@ public:
|
||||
return ChunkedObjects ? ChunkedObjects->GetObjectByIndex(ObjectIndex) : UnchunkedObjects ? UnchunkedObjects->GetObjectByIndex(ObjectIndex) : nullptr;
|
||||
}
|
||||
|
||||
FORCEINLINE bool operator==(const FWeakObjectPtr& Other) const
|
||||
{
|
||||
return
|
||||
(ObjectIndex == Other.ObjectIndex && ObjectSerialNumber == Other.ObjectSerialNumber)
|
||||
// || (!IsValid() && !Other.IsValid())
|
||||
;
|
||||
}
|
||||
|
||||
friend uint32 GetTypeHash(const FWeakObjectPtr& WeakObjectPtr)
|
||||
{
|
||||
return uint32(WeakObjectPtr.ObjectIndex ^ WeakObjectPtr.ObjectSerialNumber);
|
||||
}
|
||||
|
||||
bool operator==(const FWeakObjectPtr& other)
|
||||
{
|
||||
return ObjectIndex == other.ObjectIndex && ObjectSerialNumber == other.ObjectSerialNumber;
|
||||
|
||||
Reference in New Issue
Block a user