Ver código fonte

Fixed crash on removing artifact.

Michał W. Urbańczyk 15 anos atrás
pai
commit
083d2e0e26
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      lib/NetPacksLib.cpp

+ 1 - 1
lib/NetPacksLib.cpp

@@ -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);