diff --git a/code/client/cl_cgame.c b/code/client/cl_cgame.c index 4484efb..84a94e9 100644 --- a/code/client/cl_cgame.c +++ b/code/client/cl_cgame.c @@ -622,10 +622,10 @@ intptr_t CL_CgameSystemCalls( intptr_t *args ) { case CG_MEMSET: Com_Memset( VMA(1), args[2], args[3] ); - return 0; + return args[1]; case CG_MEMCPY: Com_Memcpy( VMA(1), VMA(2), args[3] ); - return 0; + return args[1]; case CG_STRNCPY: strncpy( VMA(1), VMA(2), args[3] ); return args[1]; diff --git a/code/client/cl_ui.c b/code/client/cl_ui.c index 67ec918..e29d32d 100644 --- a/code/client/cl_ui.c +++ b/code/client/cl_ui.c @@ -988,11 +988,11 @@ intptr_t CL_UISystemCalls( intptr_t *args ) { case UI_MEMSET: Com_Memset( VMA(1), args[2], args[3] ); - return 0; + return args[1]; case UI_MEMCPY: Com_Memcpy( VMA(1), VMA(2), args[3] ); - return 0; + return args[1]; case UI_STRNCPY: strncpy( VMA(1), VMA(2), args[3] ); diff --git a/code/server/sv_game.c b/code/server/sv_game.c index ebfa726..859f207 100644 --- a/code/server/sv_game.c +++ b/code/server/sv_game.c @@ -796,11 +796,11 @@ intptr_t SV_GameSystemCalls( intptr_t *args ) { case TRAP_MEMSET: Com_Memset( VMA(1), args[2], args[3] ); - return 0; + return args[1]; case TRAP_MEMCPY: Com_Memcpy( VMA(1), VMA(2), args[3] ); - return 0; + return args[1]; case TRAP_STRNCPY: strncpy( VMA(1), VMA(2), args[3] );