Fixed a potential crash on SV_Error.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3077 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2008-12-02 23:04:15 +00:00
parent 1456ed1ac7
commit bf63418315

View file

@ -1132,7 +1132,7 @@ trace_t SV_ClipMoveToEntity (edict_t *ent, vec3_t start, vec3_t mins, vec3_t max
{
model = sv.models[(int)ent->v->modelindex];
if (!model || (model->type != mod_brush && model->type != mod_heightmap))
SV_Error("SOLID_BSP with non bsp model (classname: %s)", svprogfuncs->stringtable + ent->v->classname);
SV_Error("SOLID_BSP with non bsp model (classname: %s)", PR_GetString(svprogfuncs, ent->v->classname));
}
else
{