From 71d932a80d050b8b04bcc1e266235034cd91661c Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 24 Nov 2007 07:40:11 +0000 Subject: [PATCH] patch from Mario Schlack which fixes csqc precache_model git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7715 d7cf8633-e32d-0410-b094-e92efae38249 --- clvm_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clvm_cmds.c b/clvm_cmds.c index 92c2d8b4..8a111161 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -346,7 +346,7 @@ static void VM_CL_precache_model (void) VM_SAFEPARMCOUNT(1, VM_CL_precache_model); name = PRVM_G_STRING(OFS_PARM0); - for (i = 1;i < MAX_MODELS && cl.csqc_model_precache[i];i++) + for (i = 0;i < MAX_MODELS && cl.csqc_model_precache[i];i++) { if(!strcmp(cl.csqc_model_precache[i]->name, name)) { @@ -358,7 +358,7 @@ static void VM_CL_precache_model (void) m = Mod_ForName(name, false, false, false); if(m && m->loaded) { - for (i = 1;i < MAX_MODELS;i++) + for (i = 0;i < MAX_MODELS;i++) { if (!cl.csqc_model_precache[i]) { -- 2.39.2