X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=svvm_cmds.c;h=fc7feddee325e56c5ef490394840c1e5d2646a78;hp=f2028c475968ac54a3dae0bfa13accaa8ff3abd4;hb=8c6898ab1f01b8efd78fea454b3f8654c4265ebb;hpb=e660b4c0147da9f4b5db110a05cfbadcea6b1b64 diff --git a/svvm_cmds.c b/svvm_cmds.c index f2028c47..fc7fedde 100644 --- a/svvm_cmds.c +++ b/svvm_cmds.c @@ -3767,10 +3767,10 @@ void VM_SV_Cmd_Init(void) void VM_SV_Cmd_Reset(void) { World_End(&sv.world); - if(prog->funcoffsets.SV_Shutdown) + if(PRVM_serverfunction(SV_Shutdown)) { - func_t s = prog->funcoffsets.SV_Shutdown; - prog->funcoffsets.SV_Shutdown = 0; // prevent it from getting called again + func_t s = PRVM_serverfunction(SV_Shutdown); + PRVM_serverfunction(SV_Shutdown) = 0; // prevent it from getting called again PRVM_ExecuteProgram(s,"SV_Shutdown() required"); }