Selaa lähdekoodia

Added patch for #1144. Thanks cirdan!

DjWarmonger 13 vuotta sitten
vanhempi
sitoutus
347bfde310
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      client/GUIClasses.cpp

+ 2 - 0
client/GUIClasses.cpp

@@ -1825,10 +1825,12 @@ void CObjectListWindow::changeSelection(size_t which)
 	{
 		CItem *item;
 		if ( (item = dynamic_cast<CItem*>(element)) )
+		{
 			if (item->index == selected)
 				item->select(false);
 			if (item->index == which)
 				item->select(true);
+		}
 	}
 	selected = which;
 }