From 264219ad2591d111f528c48faf9be563690bb15f Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 3 Jan 2010 20:28:52 +0000 Subject: [PATCH] When loading savegames, unlink all edicts first. This prevents bugs from happening on loading games when an entity number was used by the spawnfunctions of the map, but not by the savegame. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9774 d7cf8633-e32d-0410-b094-e92efae38249 --- host_cmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/host_cmd.c b/host_cmd.c index 80bc0a7f..e04f1a25 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -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 (;;) -- 2.39.2