]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix recursive error (and sometimes segfault) when a Host_Error occurs during progs...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 24 Sep 2005 09:24:25 +0000 (09:24 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 24 Sep 2005 09:24:25 +0000 (09:24 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5727 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 3a72466d6b6f21c22a3793e31e0cdf10e1ce03ed..98e8860d37056892b10fc6919fbdfb9b2547694d 100644 (file)
--- 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