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
hammermaps committed Apr 25, 2023
1 parent 046b8fa commit b1257f1
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 @@ -1349,4 +1349,5 @@ void CMomentaryDoor::StopMoveSound()
m_iState = STATE_OFF;
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 b1257f1

Please sign in to comment.