Skip to content

Commit 4d74a7d

Browse files
committed
Fix for travis
1 parent 84946ca commit 4d74a7d

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
@@ -542,8 +542,8 @@ bool GameController::handleBankClick(ScreenCoordinate screenCoord) {
542542
view.removeElement(priority);
543543
return true;
544544
};
545-
546-
view.addElement(priority, std::unique_ptr<ViewElement>(new TradingView(model.getCurrentPlayer().getName(), "Bank", tradeFunction, cancelFunction, {0, 0, 0, 0, 0})));
545+
std::array<int, 5> initial{{0, 0, 0, 0, 0}};
546+
view.addElement(priority, std::unique_ptr<ViewElement>(new TradingView(model.getCurrentPlayer().getName(), "Bank", tradeFunction, cancelFunction, initial)));
547547

548548
return true;
549549
}

0 commit comments

Comments
 (0)