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:
parent
bce805dacc
commit
083d2e0e26
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user