@@ -108,7 +108,7 @@ bool GameController::handlePlayerClick(ScreenCoordinate coord, Player& player) {
108108 std::function<bool (std::array<int , 5 >, ScreenCoordinate)> tradeFunction ([this , &initiating, &receiving](std::array<int , 5 > offer, ScreenCoordinate coord) {
109109 std::array<int , 5 > initial{{0 , 0 , 0 , 0 , 0 }};
110110 std::array<int , 5 > reverseOffer = negativeArr<5 >(offer);
111- handleTradeOffer (coord, receiving, initial, receiving , reverseOffer);
111+ handleTradeOffer (coord, receiving, initial, initiating , reverseOffer);
112112 return true ;
113113 });
114114 std::function<bool (ScreenCoordinate)> cancelFunction ([this , priority](ScreenCoordinate coord) {
@@ -137,7 +137,7 @@ bool GameController::handleTradeOffer(ScreenCoordinate coord, Player& initiating
137137 // std::function<bool(std::array<int, 5>, ScreenCoordinate)> tradeFunction(std::bind(&GameController::handleTradeOffer, this, _2, std::ref(initiating), _1, std::ref(receiving)));
138138 std::function<bool (std::array<int , 5 >, ScreenCoordinate)> tradeFunction ([this , &initiating, &receiving, counterOffer](std::array<int , 5 > offer, ScreenCoordinate coord) {
139139 std::array<int , 5 > reverseOffer = negativeArr<5 >(offer);
140- handleTradeOffer (coord, receiving, counterOffer, receiving , reverseOffer);
140+ handleTradeOffer (coord, receiving, counterOffer, initiating , reverseOffer);
141141 return true ;
142142 });
143143 std::function<bool (ScreenCoordinate)> cancelFunction ([this , priority](ScreenCoordinate coord) {
0 commit comments