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:
parent
a7ed27c73f
commit
1c95c51ffb
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user