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:
parent
8dc525e53f
commit
d2c6bb1c6e
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue