Fixed crash on names-screen.

This commit is contained in:
Florian Küpper committed 2013-01-11 13:44:05 +01:00
1 parent 34a299bde5
commit 148e92a416
1 file changed
+3 -4
+3 -4
View File
@@ -360,7 +360,10 @@ namespace Vocaluxe.Menu
break;
}
if (_Offset * _Tiles.Count + _actualSelection < VisibleProfiles.Count)
Selection = VisibleProfiles[_Offset * _Tiles.Count + _actualSelection];
else
Selection = -1;
}
public void KeyboardSelection(bool active, int player)
@@ -408,9 +411,6 @@ namespace Vocaluxe.Menu
if (offset < 0)
offset = 0;
if ( _Tiles.Count * (offset + 1) - VisibleProfiles.Count < _Tiles.Count)
{
for (int i = 0; i < _Tiles.Count; i++)
{
if ((i + offset * _Tiles.Count) < VisibleProfiles.Count)
@@ -430,7 +430,6 @@ namespace Vocaluxe.Menu
}
_Offset = offset;
}
}
public bool isOverTile(MouseEvent mevent)
{