This commit is contained in:
MarcEricMartel
2023-11-27 12:42:46 -05:00
parent 6c0d65ea22
commit c24123362a
2 changed files with 3 additions and 4 deletions

View File

@@ -154,7 +154,6 @@ int Server::Ready() {
Log(str.append(play.name).append(" SID: [").append(std::to_string(log->sid)).append("]")
.append(" ID: [").append(std::to_string(play.id)).append("]")
.append(" TID: [").append(std::to_string(play.tid)).append("]"), false, false);
play.tid = log->tid;
sendPack<GameInfo>(sock, &m_game, &m_buf);
@@ -165,7 +164,7 @@ int Server::Ready() {
sendPack<PlayerInfo>(sock, player->getInfo(), &m_buf); // et envoyer les infos des joueurs distants au nouveau joueur.
}
m_players[log->sid] = std::move(conn);
m_players[log->sid] = conn;
delete log;