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:
parent
720deba838
commit
347bfde310
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user