Procházet zdrojové kódy

Fix corrupted UI redraw in artifact merchant

Ivan Savenko před 2 roky
rodič
revize
5857ad0169
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      client/windows/CTradeWindow.cpp

+ 3 - 0
client/windows/CTradeWindow.cpp

@@ -924,6 +924,9 @@ void CMarketplaceWindow::artifactsChanged(bool Left)
 			toRemove.insert(item);
 
 	removeItems(toRemove);
+
+	// clear set to erase final instance of shared_ptr - we want to redraw screen only after it has been deleted
+	toRemove.clear();
 	redraw();
 }