1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-21 17:17:06 +02:00

fix for fused artifacts creation

This commit is contained in:
SoundSSGood 2024-11-10 17:06:39 +02:00
parent ef46a87e69
commit ea14760e6c

View File

@ -236,7 +236,7 @@ DLL_LINKAGE CArtifactInstance * ArtifactUtils::createArtifact(const ArtifactID &
assert(art);
auto * artInst = new CArtifactInstance(art);
if(art->isCombined())
if(art->isCombined() && !art->isFused())
{
for(const auto & part : art->getConstituents())
artInst->addPart(createArtInst(part), ArtifactPosition::PRE_FIRST);