1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-02-26 16:03:58 +00:00

Fix mistake in combobox selection

This commit is contained in:
Valentin Ochs 2017-01-18 09:30:32 +01:00
parent f9357e7fca
commit 35eb6ac563

View file

@ -310,7 +310,7 @@ void AquariaComboBox::setSelectedItem(int index)
{
doScroll(0);
}
else if(index > 0)
else if(index < items.size())
{
if ((size_t) index < items.size())
{