diff --git a/Runtime/CToken.hpp b/Runtime/CToken.hpp index 1fec4bbd5..fde3a4435 100644 --- a/Runtime/CToken.hpp +++ b/Runtime/CToken.hpp @@ -107,7 +107,7 @@ public: TToken(std::unique_ptr&& obj) : CToken(GetIObjObjectFor(std::move(obj))) {} TToken& operator=(std::unique_ptr&& obj) { *this = CToken(GetIObjObjectFor(std::move(obj))); - return this; + return *this; } virtual void Unlock() { CToken::Unlock(); } virtual void Lock() { CToken::Lock(); }