Skip to content

Commit

Permalink
change std::function to fn pointer in AxisSighted
Browse files Browse the repository at this point in the history
  • Loading branch information
silverweed committed Jul 10, 2024
1 parent 6ede54b commit 2edefa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/components/AxisSighted.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static bool checkRight(const sf::Vector2i& etile, const sf::Vector2i& mtile) {
return etile.y == mtile.y && etile.x > mtile.x;
}

static const std::array<std::function<bool(const sf::Vector2i&, const sf::Vector2i&)>, 4> helper_funcs = {{
static const std::array<bool(*)(const sf::Vector2i&, const sf::Vector2i&), 4> helper_funcs = {{
checkUp,
checkLeft,
checkDown,
Expand Down

0 comments on commit 2edefa5

Please sign in to comment.