1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

Fix check of locked artifacts for Altar of Sacrifice

This one is explained in issue 2001
This commit is contained in:
ArseniyShestakov 2014-12-25 06:27:39 +03:00
parent 046a6fc45a
commit 54437a3b19

View File

@ -1273,7 +1273,7 @@ void CAltarWindow::SacrificeAll()
{
for(auto i = hero->artifactsWorn.cbegin(); i != hero->artifactsWorn.cend(); i++)
{
if(i->second.artifact->artType->id != ArtifactID::ART_LOCK) //ignore locks from assembled artifacts
if(!i->second.locked) //ignore locks from assembled artifacts
moveFromSlotToAltar(i->first, nullptr, i->second.artifact);
}