2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-25 19:29:13 +01:00
This commit is contained in:
Night Owl 2017-07-02 19:31:49 +05:00
parent 13a691bdd8
commit 3dfbd2a41f

View File

@ -484,9 +484,12 @@ void CWorld::Precache( void )
///!!!LATER - do we want a sound ent in deathmatch? (sjb)
//pSoundEnt = CBaseEntity::Create( "soundent", g_vecZero, g_vecZero, edict() );
pSoundEnt = GetClassPtr( ( CSoundEnt *)NULL );
pSoundEnt->Spawn();
if( !pSoundEnt )
if( pSoundEnt )
{
pSoundEnt->Spawn();
}
else
{
ALERT ( at_console, "**COULD NOT CREATE SOUNDENT**\n" );
}