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