mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-27 21:49:10 +02:00
Update SelectionTab.cpp
fix possible -1
This commit is contained in:
parent
52f00ec308
commit
92159e57ef
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user