mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
crash fix: dismiss hero when pick artifact
This commit is contained in:
@@ -28,7 +28,8 @@ CArtifactsOfHeroMain::CArtifactsOfHeroMain(const Point & position)
|
||||
|
||||
CArtifactsOfHeroMain::~CArtifactsOfHeroMain()
|
||||
{
|
||||
CArtifactsOfHeroBase::putBackPickedArtifact();
|
||||
if(curHero)
|
||||
CArtifactsOfHeroBase::putBackPickedArtifact();
|
||||
}
|
||||
|
||||
void CArtifactsOfHeroMain::keyPressed(EShortcut key)
|
||||
|
||||
Reference in New Issue
Block a user