From 7e7b06a653ec262a297247e78bd069f66bb5311a Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 9 Apr 2019 19:21:26 +0000 Subject: [PATCH] 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 --- source/duke3d/src/astub.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/duke3d/src/astub.cpp b/source/duke3d/src/astub.cpp index a688b2f01..59275cb82 100644 --- a/source/duke3d/src/astub.cpp +++ b/source/duke3d/src/astub.cpp @@ -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