1
0
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:
Laserlicht 2024-10-30 21:36:37 +01:00
parent a54f4e1bd1
commit 1423951b9e

View File

@ -307,7 +307,7 @@ void SelectionTab::clickReleased(const Point & cursorPosition)
{
int line = getLine();
if(line != -1)
if(line != -1 && curItems.size() > line)
{
select(line);
}