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:
parent
27705e1ac6
commit
6ab807f694
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user