Make it possible use GridPosition with emplace_back

This commit is contained in:
Patricia Aas 2021-07-06 12:41:50 +02:00
parent 30f69464dd
commit eb36d24b31

View file

@ -12,6 +12,7 @@ struct Position {
struct GridPosition { struct GridPosition {
size_t x; size_t x;
size_t y; size_t y;
constexpr GridPosition(size_t x, size_t y) : x(x), y(y) {}
}; };
using Rect = sf::Rect<int>; using Rect = sf::Rect<int>;