mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: server: lift down Host_Error on NULL name in PrecacheModel
This commit is contained in:
@@ -1286,7 +1286,8 @@ static int GAME_EXPORT pfnPrecacheModel( const char *s )
|
||||
|
||||
if( COM_StringEmptyOrNULL( s ))
|
||||
{
|
||||
Host_Error( "%s: NULL pointer or empty string as model name\n", __func__ );
|
||||
// GoldSrc does Host_Error here, we are returning world as that's safe and doesn't break existing Xash games
|
||||
Con_Printf( S_WARN "%s: NULL pointer or empty string as model name, returning world...\n", __func__ );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user