This commit is contained in:
Night Owl 2017-07-02 19:31:49 +05:00
parent 13a691bdd8
commit 3dfbd2a41f
1 changed files with 5 additions and 2 deletions

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" );
}