From 05ce55f0de41c02a62c22cb9513042f8f68757c8 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 13 Oct 2005 12:03:05 +0000 Subject: [PATCH] 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 --- prvm_edict.c | 4 ++++ 1 file changed, 4 insertions(+) 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] == '_') -- 2.39.2