Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 8a4851d

Browse files
authored
Fix 1
1 parent 019a63d commit 8a4851d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

game/server/EntityFlame.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===== Copyright © 1996-2005, Valve Corporation, All rights reserved. ======//
1+
//===== Copyright © 1996-2005, Valve Corporation, All rights reserved. ======//
22
//
33
// Purpose: Flame entity to be attached to target entity. Serves two purposes:
44
//
@@ -276,9 +276,12 @@ void CEntityFlame::FlameThink( void )
276276
SetNextThink( gpGlobals->curtime + 0.5f );
277277

278278
// Notify anything we're attached to
279+
// Secton fix
279280
if ( m_hEntAttached )
280281
{
281-
CBaseCombatCharacter *pAttachedCC = m_hEntAttached->MyCombatCharacterPointer();
282+
//Cannot directly cast networked variables
283+
CBaseEntity *temp = m_hEntAttached;
284+
CBaseCombatCharacter *pAttachedCC = (CBaseCombatCharacter *)temp;
282285

283286
if( pAttachedCC )
284287
{

0 commit comments

Comments
 (0)