From 32372654c23c76fdbb5e94d68cbec0dd40fc7c7a Mon Sep 17 00:00:00 2001 From: SNMetamorph <25657591+SNMetamorph@users.noreply.github.com> Date: Fri, 11 Nov 2022 07:14:22 +0400 Subject: [PATCH] engine: server: sv_client: fixed working ent_create command on XashXT/PrimeXT --- engine/server/sv_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/server/sv_client.c b/engine/server/sv_client.c index e336f0f3..987fc8e2 100644 --- a/engine/server/sv_client.c +++ b/engine/server/sv_client.c @@ -2740,7 +2740,7 @@ static qboolean SV_EntCreate_f( sv_client_t *cl ) classname = ALLOC_STRING( Cmd_Argv( 1 ) ); - ent = SV_AllocPrivateData( 0, classname ); + ent = SV_CreateNamedEntity( 0, classname ); // Xash3D extension if( !ent && svgame.physFuncs.SV_CreateEntity )