1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Replace more usages of pointers to packs with references

This commit is contained in:
Ivan Savenko
2024-10-04 14:01:10 +00:00
parent ee831c06e7
commit 786f80871e
9 changed files with 68 additions and 68 deletions

View File

@@ -1444,8 +1444,8 @@ void CGameHandler::sendToAllClients(CPackForClient * pack)
void CGameHandler::sendAndApply(CPackForClient * pack)
{
sendToAllClients(pack);
gs->apply(pack);
logNetwork->trace("\tApplied on gs: %s", typeid(*pack).name());
gs->apply(*pack);
logNetwork->trace("\tApplied on gs: %s", typeid(pack).name());
}
void CGameHandler::sendAndApply(CGarrisonOperationPack * pack)