Преглед на файлове

Fix corrupted UI redraw in artifact merchant

Ivan Savenko преди 2 години
родител
ревизия
5857ad0169
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  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();
 }