From: havoc Date: Thu, 13 Oct 2005 12:03:05 +0000 (+0000) Subject: work around for empty key/value pairs in nehahra neh1m8.bsp entities X-Git-Tag: xonotic-v0.1.0preview~4547 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=05ce55f0de41c02a62c22cb9513042f8f68757c8;p=xonotic%2Fdarkplaces.git work around for empty key/value pairs in nehahra neh1m8.bsp entities git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5736 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_edict.c b/prvm_edict.c index 35d5fde0..168e62ae 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -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] == '_')