]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
When loading savegames, unlink all edicts first. This prevents bugs from happening...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 3 Jan 2010 20:28:52 +0000 (20:28 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 3 Jan 2010 20:28:52 +0000 (20:28 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9774 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c

index 80bc0a7f774e7ba00948b9703008f7f013a422f7..e04f1a258fe21c614d1175edb176ebca21932cd8 100644 (file)
@@ -831,6 +831,9 @@ void Host_Loadgame_f (void)
                }
        }
 
+       // unlink all entities
+       World_UnlinkAll(&sv.world);
+
 // load the edicts out of the savegame file
        end = t;
        for (;;)