From: havoc Date: Sat, 1 Mar 2008 13:24:42 +0000 (+0000) Subject: fix ev_field parser for savegames X-Git-Tag: xonotic-v0.1.0preview~2351 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6d03d9ec282d85bdd1066b64618766c1ed8fff8b;p=xonotic%2Fdarkplaces.git fix ev_field parser for savegames git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8173 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_edict.c b/prvm_edict.c index 56f980f3..1dc7024a 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -982,7 +982,12 @@ qboolean PRVM_ED_ParseEpair(prvm_edict_t *ent, ddef_t *key, const char *s) break; case ev_field: - def = PRVM_ED_FindField(s); + if (*s != '.') + { + Con_DPrintf("PRVM_ED_ParseEpair: Bogus field name %s in %s\n", s, PRVM_NAME); + return false; + } + def = PRVM_ED_FindField(s + 1); if (!def) { Con_DPrintf("PRVM_ED_ParseEpair: Can't find field %s in %s\n", s, PRVM_NAME);