Fix issue with G hotkey in editor sound list (F2) where the input field value was clamped to the total number of defined sounds instead of the highest index a sound is defined at

git-svn-id: https://svn.eduke32.com/eduke32@7547 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-04-09 19:21:26 +00:00 committed by Christoph Oelckers
parent 7abfcd28be
commit 7e7b06a653

View file

@ -1855,7 +1855,7 @@ static void SoundDisplay(void)
if (PRESSED_KEYSC(G)) // goto specified sound#
{
_printmessage16(" ");
j = getnumber16("Goto sound#: ", 0, g_numsounds-1, 0);
j = getnumber16("Goto sound#: ", 0, MAXSOUNDS-1, 0);
for (i=0; i<g_numsounds; i++)
if (g_sndnum[i]==j)
break;