Commit f7834055 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

engine: prevent potential deferencing of null ptr

parent 3a12ada9
......@@ -666,7 +666,7 @@ int32_t mdloadskin(md2model_t *m, int32_t number, int32_t pal, int32_t surf)
if (skinfile == NULL || !skinfile[0])
return 0;
if (*texidx)
if (texidx && *texidx)
return *texidx;
// possibly fetch an already loaded multitexture :_)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment