Browse Source

Update SelectionTab.cpp

fix possible -1
Michael 2 years ago
parent
commit
92159e57ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/lobby/SelectionTab.cpp

+ 1 - 1
client/lobby/SelectionTab.cpp

@@ -328,7 +328,7 @@ void SelectionTab::clickDouble(const Point & cursorPosition)
 	if(itemIndex >= curItems.size())
 		return;
 
-	if(curItems[itemIndex]->isFolder)
+	if(itemIndex >= 0 && curItems[itemIndex]->isFolder)
 		return;
 
 	if(getLine() != -1) //double clicked scenarios list