mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Update server/CGameHandler.cpp
Co-authored-by: Nordsoft91 <nordsoft@yahoo.com>
This commit is contained in:
@@ -3984,8 +3984,8 @@ bool CGameHandler::bulkSwapArtifacts(ObjectInstanceID leftHero, ObjectInstanceID
|
|||||||
static_cast<ConstTransitivePtr<CGHeroInstance>>(prightHero), true);
|
static_cast<ConstTransitivePtr<CGHeroInstance>>(prightHero), true);
|
||||||
ma.srcArtHolder = static_cast<ConstTransitivePtr<CGHeroInstance>>(prightHero);
|
ma.srcArtHolder = static_cast<ConstTransitivePtr<CGHeroInstance>>(prightHero);
|
||||||
ma.dstArtHolder = static_cast<ConstTransitivePtr<CGHeroInstance>>(pleftHero);
|
ma.dstArtHolder = static_cast<ConstTransitivePtr<CGHeroInstance>>(pleftHero);
|
||||||
auto slotsLeftRight = &ma.artsPack0;
|
auto & slotsLeftRight = ma.artsPack0;
|
||||||
auto slotsRightLeft = &ma.artsPack1;
|
auto & slotsRightLeft = ma.artsPack1;
|
||||||
|
|
||||||
auto moveArtsWorn = [this](const CGHeroInstance * srcHero, const CGHeroInstance * dstHero,
|
auto moveArtsWorn = [this](const CGHeroInstance * srcHero, const CGHeroInstance * dstHero,
|
||||||
std::vector<BulkMoveArtifacts::LinkedSlots> * slots) -> void
|
std::vector<BulkMoveArtifacts::LinkedSlots> * slots) -> void
|
||||||
|
Reference in New Issue
Block a user