mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-25 21:38:59 +02:00
disable selection by empty slot
This commit is contained in:
parent
a54f4e1bd1
commit
1423951b9e
@ -307,7 +307,7 @@ void SelectionTab::clickReleased(const Point & cursorPosition)
|
||||
{
|
||||
int line = getLine();
|
||||
|
||||
if(line != -1)
|
||||
if(line != -1 && curItems.size() > line)
|
||||
{
|
||||
select(line);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user