Explorar el Código

Fixed crash on removing artifact.

Michał W. Urbańczyk hace 15 años
padre
commit
083d2e0e26
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);