Sfoglia il codice sorgente

Fixed crash on removing artifact.

Michał W. Urbańczyk 15 anni fa
parent
commit
083d2e0e26
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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);