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 befa667 commit b5a9e32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/game/server/entities/doors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1094,4 +1094,5 @@ void CMomentaryDoor::StopMoveSound()
{
STOP_SOUND(ENT(pev), CHAN_STATIC, STRING(pev->noiseMoving));
EMIT_SOUND(ENT(pev), CHAN_STATIC, STRING(pev->noiseArrived), 1, ATTN_NORM);
SetThink(nullptr);
}

0 comments on commit b5a9e32

Please sign in to comment.