fix segfault

This commit is contained in:
Rudolf Polzer 2010-10-01 11:55:29 +02:00
parent 43b05f81bc
commit 5c389d3f8a

View File

@ -252,7 +252,7 @@ void InsertModel( const char *name, int skin, int frame, m4x4_t transform, remap
Sys_Printf( "Skin %d of %s does not exist, using 0 instead\n", skin, name ); Sys_Printf( "Skin %d of %s does not exist, using 0 instead\n", skin, name );
} }
sf = NULL; sf = NULL;
if(skinfilesize) if(skinfilesize >= 0)
{ {
Sys_Printf( "Using skin %d of %s\n", skin, name ); Sys_Printf( "Using skin %d of %s\n", skin, name );
int pos; int pos;