1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Backpack limit part4 (Using cheats, buying)

This commit is contained in:
SoundSSGood
2023-03-20 01:18:32 +02:00
parent ca5c9910a4
commit 9f8aa25297
15 changed files with 83 additions and 74 deletions

View File

@@ -843,7 +843,7 @@ void CExchangeController::moveArtifact(
{
auto srcLocation = ArtifactLocation(source, srcPosition);
auto dstLocation = ArtifactLocation(target,
ArtifactUtils::getArtifactDstPosition(source->getArt(srcPosition)->artType->getId(), target));
ArtifactUtils::getArtAnyPosition(target, source->getArt(srcPosition)->artType->getId()));
cb->swapArtifacts(srcLocation, dstLocation);
}