2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-23 18:29:36 +01:00

Fix unreferenced variable.

This commit is contained in:
Marc-Antoine Lortie 2024-10-17 18:40:43 -04:00 committed by Andrey Akhmichin
parent 13086d3b5d
commit d1aa71d59d

View File

@ -1073,7 +1073,7 @@ BOOL CScriptedSentence::AcceptableSpeaker( CBaseToggle *pTarget )
if( hTarget != 0 )
{
CBaseMonster *pMonster = (CBaseMonster*)( (CBaseEntity*)hTarget );
pMonster = (CBaseMonster*)( (CBaseEntity*)hTarget );
if( pev->spawnflags & SF_SENTENCE_FOLLOWERS )
{
if( pMonster->m_hTargetEnt == 0 || !pMonster->m_hTargetEnt->IsPlayer() )