Skip to content

Commit 4a9b631

Browse files
committed
Fix for initiating/receiving
1 parent 2f3edef commit 4a9b631

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
@@ -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

Comments
 (0)