1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Fixed CID 1375685

This commit is contained in:
AlexVinS 2017-05-28 14:27:50 +03:00
parent a7ed27c73f
commit 1c95c51ffb

View File

@ -180,6 +180,11 @@ std::string CStackWindow::generateStackExpDescription()
void CStackWindow::removeStackArtifact(ArtifactPosition pos)
{
auto art = info->stackNode->getArt(ArtifactPosition::CREATURE_SLOT);
if(!art)
{
logGlobal->error("Attempt to remove missing artifact");
return;
}
LOCPLINT->cb->swapArtifacts(ArtifactLocation(info->stackNode, pos),
ArtifactLocation(info->owner, art->firstBackpackSlot(info->owner)));
stackArtifactButton.reset();