diff --git a/Runtime/Character/IAnimReader.hpp b/Runtime/Character/IAnimReader.hpp index 92f758d1c..59f7e1df9 100644 --- a/Runtime/Character/IAnimReader.hpp +++ b/Runtime/Character/IAnimReader.hpp @@ -77,12 +77,12 @@ public: // Converting constructor TSubAnimTypeToken(const TLockedToken& token) : TLockedToken(token) {} - CAnimSource* GetObj() { + CAnimSource* GetObj() override { CAllFormatsAnimSource* source = reinterpret_cast(TLockedToken::GetObj()); return &source->GetAsCAnimSource(); } - const CAnimSource* GetObj() const { + const CAnimSource* GetObj() const override { return const_cast*>(this)->GetObj(); } }; @@ -93,13 +93,13 @@ public: // Converting constructor TSubAnimTypeToken(const TLockedToken& token) : TLockedToken(token) {} - CFBStreamedCompression* GetObj() { + CFBStreamedCompression* GetObj() override { CAllFormatsAnimSource* source = reinterpret_cast(TLockedToken::GetObj()); return &source->GetAsCFBStreamedCompression(); } - const CFBStreamedCompression* GetObj() const { + const CFBStreamedCompression* GetObj() const override { return const_cast*>(this)->GetObj(); } };