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

Merge pull request #5700 from IvanSavenko/gamestate_pack_visitor

Remove CPack::applyGs method in favor of GameStatePackVisitor class
This commit is contained in:
Ivan Savenko
2025-05-14 11:53:15 +03:00
committed by GitHub
23 changed files with 1748 additions and 1802 deletions

View File

@@ -123,7 +123,7 @@ void ApplyGhNetPackVisitor::visitBulkMergeStacks(BulkMergeStacks & pack)
result = gh.bulkMergeStacks(pack.src, pack.srcOwner);
}
void ApplyGhNetPackVisitor::visitBulkSmartSplitStack(BulkSplitAndRebalanceStack & pack)
void ApplyGhNetPackVisitor::visitBulkSplitAndRebalanceStack(BulkSplitAndRebalanceStack & pack)
{
gh.throwIfWrongPlayer(connection, &pack);
gh.throwIfPlayerNotActive(connection, &pack);