From 5c389d3f8a2e20d2c7e179df640cd5c3b49df32d Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 1 Oct 2010 11:55:29 +0200 Subject: [PATCH] fix segfault --- tools/quake3/q3map2/model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2