Mapster32: fix crash with 'vidmode <bpp>' introduced in r2311.

git-svn-id: https://svn.eduke32.com/eduke32@2315 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-02-04 21:34:08 +00:00
parent 1d0cb07167
commit b8c2d13f23

View file

@ -261,6 +261,7 @@ static int32_t osdcmd_vidmode(const osdfuncparm_t *parm)
if (!(tmp==8 || tmp==16 || tmp==32)) if (!(tmp==8 || tmp==16 || tmp==32))
return OSDCMD_SHOWHELP; return OSDCMD_SHOWHELP;
newbpp = tmp; newbpp = tmp;
break;
case 4: // fs, res, bpp switch case 4: // fs, res, bpp switch
newfullscreen = (Batol(parm->parms[3]) != 0); newfullscreen = (Batol(parm->parms[3]) != 0);
case 3: // res & bpp switch case 3: // res & bpp switch