Fixes
This commit is contained in:
@@ -25,6 +25,7 @@ public:
|
||||
EventType Unload;
|
||||
|
||||
public:
|
||||
NON_COPYABLE(WeakAssetReferenceBase);
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="WeakAssetReferenceBase"/> class.
|
||||
@@ -100,6 +101,22 @@ public:
|
||||
OnSet(other.Get());
|
||||
}
|
||||
|
||||
WeakAssetReference(WeakAssetReference&& other)
|
||||
{
|
||||
OnSet(other.Get());
|
||||
other.OnSet(nullptr);
|
||||
}
|
||||
|
||||
WeakAssetReference& operator=(WeakAssetReference&& other)
|
||||
{
|
||||
if (&other != this)
|
||||
{
|
||||
OnSet(other.Get());
|
||||
other.OnSet(nullptr);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Finalizes an instance of the <see cref="WeakAssetReference"/> class.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user