Fix ScriptEntityCancel (#395)

This commit is contained in:
Roman Chistokhodov 2023-10-07 05:01:40 +03:00 committed by GitHub
parent ab08f27423
commit 1685a691aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;