fix omc's lock-up bug.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4846 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2015-03-08 12:11:02 +00:00
parent 8dc525e53f
commit d2c6bb1c6e

View file

@ -1852,9 +1852,9 @@ char *Mod_ParseWorldspawnKey(const char *ents, const char *key, char *buffer, si
char value[1024];
while(*ents)
{
if (*ents == '{') //an entity
ents = COM_ParseOut(ents, keyname, sizeof(keyname));
if (*keyname == '{') //an entity
{
ents++;
while (ents && *ents)
{
ents = COM_ParseOut(ents, keyname, sizeof(keyname));