]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_edict.c
work around for empty key/value pairs in nehahra neh1m8.bsp entities
[xonotic/darkplaces.git] / prvm_edict.c
index 35d5fde04ead699236aaea61a28139feba044616..168e62ae40acee25819fe7da59f8d50f02c35531 100644 (file)
@@ -1061,6 +1061,10 @@ const char *PRVM_ED_ParseEdict (const char *data, prvm_edict_t *ent)
 
                init = true;
 
+               // ignore attempts to set key "" (this problem occurs in nehahra neh1m8.bsp)
+               if (!keyname[0])
+                       continue;
+
 // keynames with a leading underscore are used for utility comments,
 // and are immediately discarded by quake
                if (keyname[0] == '_')