Преглед изворни кода

Put artifact in different slot if selected is used

This one fixes issue 2002.
ArseniyShestakov пре 11 година
родитељ
комит
6ab807f694
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      client/windows/CTradeWindow.cpp

+ 1 - 1
client/windows/CTradeWindow.cpp

@@ -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)