1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Replace pointer with reference in pack apply functions

This commit is contained in:
Ivan Savenko
2024-10-04 18:59:51 +00:00
parent 48fb58e7a0
commit c0f5c7c0ea
61 changed files with 369 additions and 369 deletions

View File

@@ -476,7 +476,7 @@ void CVCMIServer::clientDisconnected(std::shared_ptr<CConnection> connection)
// }
//
// if(!startAiPack.players.empty())
// gh->sendAndApply(&startAiPack);
// gh->sendAndApply(startAiPack);
}
void CVCMIServer::reconnectPlayer(int connId)
@@ -503,7 +503,7 @@ void CVCMIServer::reconnectPlayer(int connId)
}
if(!startAiPack.players.empty())
gh->sendAndApply(&startAiPack);
gh->sendAndApply(startAiPack);
}
}