fix bug when down arrow gave no result after mouse move in main menu

Steps to reproduce:
1. Load game.
2. Press any key to bring up the main menu.
3. Move the mouse anywhere out of the menu entries.
4. Press Down arrow.

Expected result: the menu cursor sound is played, the first menu element is selected.
Actual result: the menu cursor sound is played, no menu element is selected.

Repeated Down arrow pressing doesn't give any result, either.

If on step 4 Up arrow is pressed, the last element in the menu is selected.
This commit is contained in:
Alexander 2019-09-30 22:44:05 +07:00 committed by Christoph Oelckers
parent 9bb8da2533
commit 0c2ed71cdd
1 changed files with 0 additions and 1 deletions

View File

@ -144,7 +144,6 @@ class ListMenu : Menu
{
int oldSelect = mDesc.mSelectedItem;
int startedAt = mDesc.mSelectedItem;
if (startedAt < 0) startedAt = 0;
switch (mkey)
{