From 8e5bd7f47783230a7c8a37ba76a91110be37a25b Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 24 Sep 2005 09:24:25 +0000 Subject: [PATCH] fix recursive error (and sometimes segfault) when a Host_Error occurs during progs loading (such as with a corrupt progs.dat) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5727 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sv_main.c b/sv_main.c index 3a72466d..98e8860d 100644 --- a/sv_main.c +++ b/sv_main.c @@ -1680,6 +1680,8 @@ void SV_SpawnServer (const char *server) memset (&sv, 0, sizeof(sv)); + SV_VM_Setup(); + sv.active = true; strlcpy (sv.name, server, sizeof (sv.name)); @@ -1693,8 +1695,6 @@ void SV_SpawnServer (const char *server) sv.protocol = PROTOCOL_QUAKE; } - SV_VM_Setup(); - SV_VM_Begin(); // load progs to get entity field count -- 2.39.2