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

View file

@ -940,7 +940,8 @@ skip_check:
continue;
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);
insptr++;