Skip to content

Commit

Permalink
Set think to null after stopping sound
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVanheer committed Mar 28, 2022
1 parent 6a6336a commit daf8a4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dlls/doors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1096,4 +1096,5 @@ void CMomentaryDoor::StopMoveSound()
{
STOP_SOUND(ENT(pev), CHAN_STATIC, (char*)STRING(pev->noiseMoving));
EMIT_SOUND(ENT(pev), CHAN_STATIC, (char*)STRING(pev->noiseArrived), 1, ATTN_NORM);
SetThink(nullptr);
}

0 comments on commit daf8a4f

Please sign in to comment.