mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
crash fix: dismiss hero when pick artifact
This commit is contained in:
@ -140,6 +140,8 @@ void CArtifactsOfHeroBase::gestureArtPlace(CComponentHolder & artPlace, const Po
|
||||
void CArtifactsOfHeroBase::setHero(const CGHeroInstance * hero)
|
||||
{
|
||||
curHero = hero;
|
||||
if (!hero)
|
||||
return;
|
||||
|
||||
for(auto slot : artWorn)
|
||||
{
|
||||
|
Reference in New Issue
Block a user