diff options
Diffstat (limited to 'src/client/cl_cgame.c')
-rw-r--r-- | src/client/cl_cgame.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/cl_cgame.c b/src/client/cl_cgame.c index 9f983cd8..babc5241 100644 --- a/src/client/cl_cgame.c +++ b/src/client/cl_cgame.c @@ -428,7 +428,7 @@ intptr_t CL_CgameSystemCalls( intptr_t *args ) { Cvar_Update( VMA(1) ); return 0; case CG_CVAR_SET: - Cvar_Set( VMA(1), VMA(2) ); + Cvar_SetSafe( VMA(1), VMA(2) ); return 0; case CG_CVAR_VARIABLESTRINGBUFFER: Cvar_VariableStringBuffer( VMA(1), VMA(2), args[3] ); @@ -466,7 +466,7 @@ intptr_t CL_CgameSystemCalls( intptr_t *args ) { CL_AddCgameCommand( VMA(1) ); return 0; case CG_REMOVECOMMAND: - Cmd_RemoveCommand( VMA(1) ); + Cmd_RemoveCommandSafe( VMA(1) ); return 0; case CG_SENDCLIENTCOMMAND: CL_AddReliableCommand(VMA(1), qfalse); |