diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index 40afedaaa..b86676663 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -2239,9 +2239,9 @@ void CGameHandler::giveHeroArtifact(int artid, int hid, int position) //pos==-1 int i; for(i=0; iarth->equipArtifact(sha.artifWorn, art.possibleSlots[i], artid); break; } @@ -2256,7 +2256,7 @@ void CGameHandler::giveHeroArtifact(int artid, int hid, int position) //pos==-1 } else { - if(!vstd::contains(sha.artifWorn,ui16(position))) + if(art.fitsAt(sha.artifWorn, ui16(position))) { VLC->arth->equipArtifact(sha.artifWorn, position, artid); }