From 348684f93e7cc4db42c07b0e8a0e71d6e47e0ce4 Mon Sep 17 00:00:00 2001 From: SoundSSGood <87084363+SoundSSGood@users.noreply.github.com> Date: Sat, 1 Apr 2023 16:15:10 +0300 Subject: [PATCH] Graphical glitches fixed --- client/widgets/CArtifactHolder.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/widgets/CArtifactHolder.cpp b/client/widgets/CArtifactHolder.cpp index 21619e41e..150900843 100644 --- a/client/widgets/CArtifactHolder.cpp +++ b/client/widgets/CArtifactHolder.cpp @@ -281,7 +281,6 @@ void CHeroArtPlace::select() } } - CCS->curh->dragAndDropCursor("artifact", ourArt->artType->getIconIndex()); ourOwner->commonInfo->src.setTo(this, false); ourOwner->commonInfo->src.slotID = ArtifactPosition::TRANSITION_POS; @@ -741,7 +740,9 @@ void CArtifactsOfHero::artifactMoved(const ArtifactLocation & src, const Artifac } if(!curHero->artifactsTransitionPos.empty() && withUIUpdate) { - markPossibleSlots(curHero->getArt(ArtifactPosition::TRANSITION_POS)); + auto artInst = curHero->getArt(ArtifactPosition::TRANSITION_POS); + markPossibleSlots(artInst); + CCS->curh->dragAndDropCursor("artifact", artInst->artType->getIconIndex()); } }