Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkrupinski committed Nov 2, 2024
1 parent c8b56ca commit 9e2b5f4
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 @@ -14,7 +14,7 @@ class PlayerActiveWeaponIconPanel {

void update(auto&& playerPawn, Visibility bombIconVisibility) const noexcept
{
if (!context.state().showPlayerActiveWeapon || (bombIconVisibility == Visibility::Visible && playerPawn.getActiveWeapon().is<C4>())) {
if (!context.state().showPlayerActiveWeapon || (bombIconVisibility == Visibility::Visible && playerPawn.getActiveWeapon().template is<C4>())) {
context.panel().setVisible(false);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion Source/GameClasses/BaseWeapon.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class BaseWeapon {
template <template <typename...> typename EntityType>
[[nodiscard]] bool is() const noexcept
{
return baseEntity().is<EntityType>();
return baseEntity().template is<EntityType>();
}

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

0 comments on commit 9e2b5f4

Please sign in to comment.