engine: server: better error message for missing spawn functions

This commit is contained in:
Alibek Omarov 2024-02-17 22:15:41 +03:00
parent dd2c369df3
commit b59b7c1a8d

View File

@ -1209,7 +1209,7 @@ static edict_t* SV_AllocPrivateData( edict_t *ent, string_t className )
if( !SpawnEdict )
{
Con_Printf( S_ERROR "No spawn function for %s\n", STRING( className ));
Con_Printf( S_ERROR "No spawn function for \"%s\"\n", pszClassName );
// free entity immediately
SV_FreeEdict( ent );