فهرست منبع

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();
 }