Skip to content

Commit 2f3edef

Browse files
committed
Fixed warning on {}
1 parent 1e0f5d9 commit 2f3edef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GameController.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ bool GameController::handlePlayerClick(ScreenCoordinate coord, Player& player) {
102102
Player& receiving = player;
103103
auto priority = -10;
104104

105-
std::array<int, 5> initial = {0, 0, 0, 0, 0};
105+
std::array<int, 5> initial{{0, 0, 0, 0, 0}};
106106

107107
//std::function<bool(std::array<int, 5>, ScreenCoordinate)> tradeFunction(std::bind(&GameController::handleTradeOffer, this, _2, std::ref(initiating), _1, std::ref(receiving)));
108108
std::function<bool(std::array<int, 5>, ScreenCoordinate)> tradeFunction([this, &initiating, &receiving](std::array<int, 5> offer, ScreenCoordinate coord) {
109-
std::array<int, 5> initial = {0, 0, 0, 0, 0};
109+
std::array<int, 5> initial{{0, 0, 0, 0, 0}};
110110
std::array<int, 5> reverseOffer = negativeArr<5>(offer);
111111
handleTradeOffer(coord, receiving, initial, receiving, reverseOffer);
112112
return true;

0 commit comments

Comments
 (0)