From: Rudolf Polzer Date: Fri, 1 Oct 2010 09:55:29 +0000 (+0200) Subject: fix segfault X-Git-Tag: xonotic-v0.5.0~206 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5c389d3f8a2e20d2c7e179df640cd5c3b49df32d;p=xonotic%2Fnetradiant.git fix segfault --- diff --git a/tools/quake3/q3map2/model.c b/tools/quake3/q3map2/model.c index 00ff693e..137554b6 100644 --- a/tools/quake3/q3map2/model.c +++ b/tools/quake3/q3map2/model.c @@ -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 ); } sf = NULL; - if(skinfilesize) + if(skinfilesize >= 0) { Sys_Printf( "Using skin %d of %s\n", skin, name ); int pos;