From 083d2e0e263046a0712f9ef8ef08d25aaa571ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20W=2E=20Urba=C5=84czyk?= Date: Wed, 10 Nov 2010 00:08:29 +0000 Subject: [PATCH] Fixed crash on removing artifact. --- lib/NetPacksLib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NetPacksLib.cpp b/lib/NetPacksLib.cpp index c7b394952..7994b06da 100644 --- a/lib/NetPacksLib.cpp +++ b/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);