]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
prvm_edict: For __fullspawndata, set the "start" pointer before '{' is parsed
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 16 Jul 2020 10:48:22 +0000 (10:48 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 16 Jul 2020 10:48:22 +0000 (10:48 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12827 d7cf8633-e32d-0410-b094-e92efae38249

prvm_edict.c

index 720bd6d17e3e986e98e33212444e3ce8bd593dd7..53179cdff12caa95a2d12f5fc876d583247e11e9 100644 (file)
@@ -1382,10 +1382,12 @@ void PRVM_ED_LoadFromFile (prvm_prog_t *prog, const char *data)
 
        prvm_reuseedicts_always_allow = host.realtime;
 
-// parse ents
+       // parse ents
        while (1)
        {
-// parse the opening brace
+               start = data;
+
+               // parse the opening brace
                if (!COM_ParseToken_Simple(&data, false, false, true))
                        break;
                if (com_token[0] != '{')
@@ -1403,7 +1405,7 @@ void PRVM_ED_LoadFromFile (prvm_prog_t *prog, const char *data)
                // clear it
                if (ent != prog->edicts)        // hack
                        memset (ent->fields.fp, 0, prog->entityfields * sizeof(prvm_vec_t));
-               start = data;
+
                data = PRVM_ED_ParseEdict (prog, data, ent);
                parsed++;