Browse Source

Check if slot locked before pick on Artifact Merchants

This one is fixes issue 2007
ArseniyShestakov 11 năm trước cách đây
mục cha
commit
f71cfdf173
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      client/windows/CTradeWindow.cpp

+ 1 - 1
client/windows/CTradeWindow.cpp

@@ -624,7 +624,7 @@ void CTradeWindow::artifactSelected(CArtPlace *slot)
 {
 	assert(mode == EMarketMode::ARTIFACT_RESOURCE);
 	items[1][0]->setArtInstance(slot->ourArt);
-	if(slot->ourArt)
+	if(slot->ourArt && !slot->locked)
 		hLeft = items[1][0];
 	else
 		hLeft = nullptr;