From: havoc Date: Sun, 8 Jun 2003 05:42:58 +0000 (+0000) Subject: fix SOLID_BSP with non-BSP model error that can occur after a Host_Error (fixed by... X-Git-Tag: xonotic-v0.1.0preview~6593 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6662c735d5e329b4421ee8918045c11dafd613c9;p=xonotic%2Fdarkplaces.git fix SOLID_BSP with non-BSP model error that can occur after a Host_Error (fixed by using Mod_CheckLoaded) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3071 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/world.c b/world.c index 3d63db31..31934669 100644 --- a/world.c +++ b/world.c @@ -343,6 +343,7 @@ void SV_LinkEdict (edict_t *ent, qboolean touch_triggers) model = sv.models[(int) ent->v->modelindex]; if (model != NULL) { + Mod_CheckLoaded(model); if (model->type != mod_brush) Host_Error("SOLID_BSP with non-BSP model\n");