Skip to content

Commit

Permalink
Fix ScriptEntityCancel (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave authored Oct 7, 2023
1 parent ab08f27 commit 1685a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/scripted.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,8 @@ void ScriptEntityCancel( edict_t *pentCine )
// make sure they are a scripted_sequence
if (FClassnameIs( pentCine, "scripted_sequence" ) || FClassnameIs( pentCine, "scripted_action" ))
{
((CCineMonster *)VARS(pentCine))->m_iState = STATE_OFF;
CCineMonster *pCineTarget = GetClassPtr( (CCineMonster *)VARS( pentCine ) );
pCineTarget->m_iState = STATE_OFF;

// make sure they have a monster in mind for the script
CBaseEntity *pEntity = pCineTarget->m_hTargetEnt;
Expand Down

0 comments on commit 1685a69

Please sign in to comment.