1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Added patch for #1144. Thanks cirdan!

This commit is contained in:
DjWarmonger 2012-10-27 16:59:24 +00:00
parent 720deba838
commit 347bfde310

View File

@ -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;
}