mirror of
https://github.com/vcmi/vcmi.git
synced 2026-06-19 22:57:37 +02:00
disable selection by empty slot
This commit is contained in:
@@ -307,7 +307,7 @@ void SelectionTab::clickReleased(const Point & cursorPosition)
|
||||
{
|
||||
int line = getLine();
|
||||
|
||||
if(line != -1)
|
||||
if(line != -1 && curItems.size() > line)
|
||||
{
|
||||
select(line);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user