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

artifacts swap optimization

This commit is contained in:
SoundSSGood
2023-11-07 22:12:32 +02:00
parent 8aea2be0db
commit ce3d407396
5 changed files with 62 additions and 46 deletions

View File

@@ -301,7 +301,7 @@ void ApplyClientNetPackVisitor::visitBulkMoveArtifacts(BulkMoveArtifacts & pack)
{
auto srcLoc = ArtifactLocation(pack.srcArtHolder, slotToMove.srcPos);
auto dstLoc = ArtifactLocation(pack.dstArtHolder, slotToMove.dstPos);
MoveArtifact ma(&srcLoc, &dstLoc, false);
MoveArtifact ma(&srcLoc, &dstLoc, pack.askAssemble);
visitMoveArtifact(ma);
}
};