diff --git a/Redcraft.Utility/Source/Public/Templates/ReferenceWrapper.h b/Redcraft.Utility/Source/Public/Templates/ReferenceWrapper.h index 404fcbf..73a8f1c 100644 --- a/Redcraft.Utility/Source/Public/Templates/ReferenceWrapper.h +++ b/Redcraft.Utility/Source/Public/Templates/ReferenceWrapper.h @@ -39,14 +39,16 @@ public: : Pointer(InValue.Pointer) { } - /** Assigns by copying the content of other. */ + /** Assigns by copying the content of others. */ FORCEINLINE constexpr TReferenceWrapper& operator=(const TReferenceWrapper&) = default; - /** Assigns by copying the content of other. */ + /** Assigns by copying the content of others. */ template requires (CConvertibleTo) FORCEINLINE constexpr TReferenceWrapper& operator=(const TReferenceWrapper& InValue) { Pointer = InValue.Pointer; + + return *this; } /** @return The stored reference. */