Browse Source

disable selection by empty slot

Laserlicht 1 year ago
parent
commit
1423951b9e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/lobby/SelectionTab.cpp

+ 1 - 1
client/lobby/SelectionTab.cpp

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