Skip to content

Commit

Permalink
Fix build error again
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkrupinski committed Sep 21, 2024
1 parent ed12b2d commit fa08f88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class GrenadeProjectileOutlineGlowCondition {

[[nodiscard]] bool shouldGlowGrenadeProjectile(EntityTypeInfo entityTypeInfo, auto&& grenadeProjectile) const noexcept
{
return !entityTypeInfo.is<cs2::C_SmokeGrenadeProjectile>() || !grenadeProjectile.as<SmokeGrenadeProjectile>().didSmokeEffect().valueOr(false);
return !entityTypeInfo.is<cs2::C_SmokeGrenadeProjectile>() || !(grenadeProjectile.as<SmokeGrenadeProjectile>().didSmokeEffect().valueOr(false));
}

private:
Expand Down
2 changes: 1 addition & 1 deletion Source/GameClasses/BaseEntity.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class BaseEntity {
template <template <typename> typename T>
[[nodiscard]] decltype(auto) as() const noexcept
{
return hookContext.template make<T<HookContext>>(static_cast<T<HookContext>::RawType*>(entity));
return hookContext.template make<T>(static_cast<T<HookContext>::RawType*>(entity));
}

[[nodiscard]] decltype(auto) renderComponent() const noexcept
Expand Down

0 comments on commit fa08f88

Please sign in to comment.