Fix name-selection with keyboard.

This commit is contained in:
Florian Kuepper committed 2012-04-02 22:55:08 +02:00
1 parent 999923bbd9
commit 1f29aa7759
1 file changed
+2 -2
+2 -2
View File
@@ -305,7 +305,7 @@ namespace Vocaluxe.Menu
break; break;
case Keys.Down: case Keys.Down:
if (_actualSelection + _NumW < _Tiles.Count-1) if (_actualSelection + _NumW < _Tiles.Count)
{ {
if (_Tiles[_actualSelection + _NumW].PlayerNr != -1) if (_Tiles[_actualSelection + _NumW].PlayerNr != -1)
{ {
@@ -321,7 +321,7 @@ namespace Vocaluxe.Menu
_actualSelection = _actualSelection - _Tiles.Count + _NumW; _actualSelection = _actualSelection - _Tiles.Count + _NumW;
if (_Tiles[_actualSelection].PlayerNr == -1) if (_Tiles[_actualSelection].PlayerNr == -1)
{ {
for (int i = _Tiles.Count - 1; i >= 0; i++) for (int i = (_Tiles.Count - 1); i >= 0; i--)
{ {
if (_Tiles[i].PlayerNr != -1) if (_Tiles[i].PlayerNr != -1)
{ {