diff --git a/engine/gl/gl_model.c b/engine/gl/gl_model.c index fe0c07792..89e49c066 100644 --- a/engine/gl/gl_model.c +++ b/engine/gl/gl_model.c @@ -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));