]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
prvm_edict: Link all edicts to the world when loaded from file. Fixes issue with...
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 8 Nov 2020 06:25:14 +0000 (06:25 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 8 Nov 2020 06:25:14 +0000 (06:25 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13041 d7cf8633-e32d-0410-b094-e92efae38249

prvm_edict.c

index 5efd5ed6eba0152ef48af9c7aa2a4083c4e92751..48e2018c63ca2499788b588bf27cab4d8e069a47 100644 (file)
@@ -1536,6 +1536,8 @@ void PRVM_ED_LoadFromFile (prvm_prog_t *prog, const char *data)
                        continue;
                }
 
+               SV_LinkEdict(ent);
+
                if(!PRVM_ED_CallSpawnFunction(prog, ent, data, start))
                        continue;