Prevent a crash in mdloadskin() caused by an oversight in r5107.

git-svn-id: https://svn.eduke32.com/eduke32@5113 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2015-03-30 05:56:06 +00:00
parent d5e3262a74
commit 3a081603ae

View file

@ -771,6 +771,10 @@ int32_t mdloadskin(md2model_t *m, int32_t number, int32_t pal, int32_t surf)
return sk->texid[f]; return sk->texid[f];
} }
// for sk->flags below
if (!sk)
sk = skzero;
*texidx = 0; *texidx = 0;
if ((filh = kopen4load(fn, 0)) < 0) if ((filh = kopen4load(fn, 0)) < 0)