]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
work around for empty key/value pairs in nehahra neh1m8.bsp entities
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 13 Oct 2005 12:03:05 +0000 (12:03 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 13 Oct 2005 12:03:05 +0000 (12:03 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5736 d7cf8633-e32d-0410-b094-e92efae38249

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] == '_')