Explorar o código

Fixed crash on removing artifact.

Michał W. Urbańczyk %!s(int64=15) %!d(string=hai) anos
pai
achega
083d2e0e26
Modificáronse 1 ficheiros con 1 adicións e 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);