Skip to content

Commit

Permalink
Linuxでビルドできなかったのを修正
Browse files Browse the repository at this point in the history
ラムダの引数にconstが有るか無いかの違い。
  • Loading branch information
MihailJP committed Oct 9, 2020
1 parent 257d464 commit aa52c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mjcore/remote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void RemoteNaki::thread_server() {
}
for (int i = 0; i < ACTUAL_PLAYERS; i++) {
using namespace mihajong_socket::protocol;
MoveTile::for_each([](std::pair<int, int>& indices) {
MoveTile::for_each([](const std::pair<int, int>& indices) {
mihajong_socket::server::send(Lipai_From + indices.first);
mihajong_socket::server::send(Lipai_To + indices.second);
}, i, true);
Expand Down

0 comments on commit aa52c17

Please sign in to comment.