1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-07 07:10:04 +02:00

Put artifact in different slot if selected is used

This one fixes issue 2002.
This commit is contained in:
ArseniyShestakov 2014-12-26 01:42:50 +03:00
parent 27705e1ac6
commit 6ab807f694

View File

@ -1475,7 +1475,7 @@ bool CAltarWindow::putOnAltar(CTradeableItem* altarSlot, const CArtifactInstance
return false;
}
if(!altarSlot)
if(!altarSlot || altarSlot->id != -1)
{
int slotIndex = firstFreeSlot();
if(slotIndex < 0)