fix for dedicated servers.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1640 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-11-30 21:35:43 +00:00
parent 304f1e38bd
commit 6f6b337428
1 changed files with 3 additions and 1 deletions

View File

@ -5170,12 +5170,14 @@ galiasinfo_t *GLMod_ParseMD5MeshModel(char *buffer)
buffer = COM_Parse(buffer);
num = atoi(com_token);
if (num < 0 || num >= numverts || !stcoord || !indexes)
if (num < 0 || num >= numverts || !indexes)
Sys_Error("MD5MESH: vertex out of range");
EXPECT("(");
buffer = COM_Parse(buffer);
#ifndef SERVERONLY
if (!stcoord)
Sys_Error("MD5MESH: vertex out of range");
stcoord[num*2+0] = atof(com_token);
#endif
buffer = COM_Parse(buffer);