Various code fixes and tweaks

This commit is contained in:
Wojtek Figat
2023-07-02 15:46:29 +02:00
parent 0d7e7edf80
commit 04963fef18
13 changed files with 26 additions and 24 deletions

View File

@@ -151,7 +151,7 @@ public:
/// </summary>
/// <param name="other">The other property.</param>
ScriptingObjectReference(const ScriptingObjectReference& other)
: ScriptingObjectReferenceBase(other.Get())
: ScriptingObjectReferenceBase(other._object)
{
}
@@ -188,12 +188,12 @@ public:
}
ScriptingObjectReference& operator=(const ScriptingObjectReference& other)
{
OnSet(other.Get());
OnSet(other._object);
return *this;
}
FORCE_INLINE ScriptingObjectReference& operator=(const Guid& id)
{
OnSet(static_cast<T*>(FindObject(id, T::GetStaticClass())));
OnSet(static_cast<ScriptingObject*>(FindObject(id, T::GetStaticClass())));
return *this;
}