mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
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:
parent
304f1e38bd
commit
6f6b337428
1 changed files with 3 additions and 1 deletions
|
@ -5170,12 +5170,14 @@ galiasinfo_t *GLMod_ParseMD5MeshModel(char *buffer)
|
||||||
|
|
||||||
buffer = COM_Parse(buffer);
|
buffer = COM_Parse(buffer);
|
||||||
num = atoi(com_token);
|
num = atoi(com_token);
|
||||||
if (num < 0 || num >= numverts || !stcoord || !indexes)
|
if (num < 0 || num >= numverts || !indexes)
|
||||||
Sys_Error("MD5MESH: vertex out of range");
|
Sys_Error("MD5MESH: vertex out of range");
|
||||||
|
|
||||||
EXPECT("(");
|
EXPECT("(");
|
||||||
buffer = COM_Parse(buffer);
|
buffer = COM_Parse(buffer);
|
||||||
#ifndef SERVERONLY
|
#ifndef SERVERONLY
|
||||||
|
if (!stcoord)
|
||||||
|
Sys_Error("MD5MESH: vertex out of range");
|
||||||
stcoord[num*2+0] = atof(com_token);
|
stcoord[num*2+0] = atof(com_token);
|
||||||
#endif
|
#endif
|
||||||
buffer = COM_Parse(buffer);
|
buffer = COM_Parse(buffer);
|
||||||
|
|
Loading…
Reference in a new issue