Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkrupinski committed Dec 11, 2024
1 parent df84efd commit a9d37ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Entities/BaseEntity.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class BaseEntity {
return {};
}

template <template <typename> typename T>
template <template <typename...> typename T>
[[nodiscard]] decltype(auto) as() const noexcept
{
return hookContext.template make<T>(static_cast<typename T<HookContext>::RawType*>(entity));
return hookContext.template make<T<HookContext>>(static_cast<typename T<HookContext>::RawType*>(entity));
}

template <template <typename...> typename EntityType>
Expand Down

0 comments on commit a9d37ac

Please sign in to comment.