fix mikesnd

git-svn-id: https://svn.eduke32.com/eduke32@1837 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2011-03-09 18:53:04 +00:00
parent b158521449
commit e17a4834eb
1 changed files with 2 additions and 1 deletions

View File

@ -940,7 +940,8 @@ skip_check:
continue; continue;
case CON_MIKESND: case CON_MIKESND:
if (((unsigned)*(++insptr) >= MAXSOUNDS)) insptr++;
if (((unsigned)vm.g_sp->yvel >= MAXSOUNDS))
{ {
OSD_Printf(CON_ERROR "Invalid sound %d\n",g_errorLineNum,keyw[g_tw],vm.g_sp->yvel); OSD_Printf(CON_ERROR "Invalid sound %d\n",g_errorLineNum,keyw[g_tw],vm.g_sp->yvel);
insptr++; insptr++;