mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 19:20:38 +00:00
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:
parent
7abfcd28be
commit
7e7b06a653
1 changed files with 1 additions and 1 deletions
|
@ -1855,7 +1855,7 @@ static void SoundDisplay(void)
|
||||||
if (PRESSED_KEYSC(G)) // goto specified sound#
|
if (PRESSED_KEYSC(G)) // goto specified sound#
|
||||||
{
|
{
|
||||||
_printmessage16(" ");
|
_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++)
|
for (i=0; i<g_numsounds; i++)
|
||||||
if (g_sndnum[i]==j)
|
if (g_sndnum[i]==j)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue