]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host_cmd.c
When loading savegames, unlink all edicts first. This prevents bugs from happening...
[xonotic/darkplaces.git] / 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 (;;)