1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-09 07:13:54 +02:00

fix build

This commit is contained in:
SoundSSGood 2023-09-19 14:10:25 +03:00
parent 9cc623c981
commit 6280e778dc
3 changed files with 5 additions and 4 deletions

@ -7,7 +7,7 @@
* Full text of license available in license.txt file, in main folder * Full text of license available in license.txt file, in main folder
* *
*/ */
#include "StdInc.h"
#include "CExchangeController.h" #include "CExchangeController.h"
#include "../CPlayerInterface.h" #include "../CPlayerInterface.h"

@ -755,7 +755,7 @@ CExchangeWindow::CExchangeWindow(ObjectInstanceID hero1, ObjectInstanceID hero2,
if(qeLayout) if(qeLayout)
{ {
auto moveArtifacts = [this](const std::function<void(bool, bool)> moveRoutine) -> void auto moveArtifacts = [](const std::function<void(bool, bool)> moveRoutine) -> void
{ {
bool moveEquipped = true; bool moveEquipped = true;
bool moveBackpack = true; bool moveBackpack = true;

@ -167,7 +167,8 @@ bool CArtifactInstance::isCombined() const
void CArtifactInstance::putAt(const ArtifactLocation & al) void CArtifactInstance::putAt(const ArtifactLocation & al)
{ {
addPlacementMap(al.getHolderArtSet()->putArtifact(al.slot, this)); auto placementMap = al.getHolderArtSet()->putArtifact(al.slot, this);
addPlacementMap(placementMap);
} }
void CArtifactInstance::removeFrom(const ArtifactLocation & al) void CArtifactInstance::removeFrom(const ArtifactLocation & al)