1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Fixed crash on removing artifact.

This commit is contained in:
Michał W. Urbańczyk 2010-11-10 00:08:29 +00:00
parent bce805dacc
commit 083d2e0e26

View File

@ -468,7 +468,7 @@ DLL_EXPORT void SetHeroArtifacts::applyGs( CGameState *gs )
DLL_EXPORT void SetHeroArtifacts::setArtAtPos(ui16 pos, const CArtifact* art)
{
if(art < 0)
if(!art)
{
if(pos<19)
VLC->arth->unequipArtifact(artifWorn, pos);