1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Update server/CGameHandler.cpp

Co-authored-by: Nordsoft91 <nordsoft@yahoo.com>
This commit is contained in:
SoundSSGood 2022-11-10 17:37:50 +02:00 committed by GitHub
parent ff63167553
commit f2afd9e831
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3984,8 +3984,8 @@ bool CGameHandler::bulkSwapArtifacts(ObjectInstanceID leftHero, ObjectInstanceID
static_cast<ConstTransitivePtr<CGHeroInstance>>(prightHero), true);
ma.srcArtHolder = static_cast<ConstTransitivePtr<CGHeroInstance>>(prightHero);
ma.dstArtHolder = static_cast<ConstTransitivePtr<CGHeroInstance>>(pleftHero);
auto slotsLeftRight = &ma.artsPack0;
auto slotsRightLeft = &ma.artsPack1;
auto & slotsLeftRight = ma.artsPack0;
auto & slotsRightLeft = ma.artsPack1;
auto moveArtsWorn = [this](const CGHeroInstance * srcHero, const CGHeroInstance * dstHero,
std::vector<BulkMoveArtifacts::LinkedSlots> * slots) -> void