mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-26 06:11:26 +00:00
idSlowChannel avoid messing with lowpass member which has virtual
methods, so more `carefully` resetting.
This commit is contained in:
parent
d4f576dff4
commit
ca68aabbcc
1 changed files with 3 additions and 3 deletions
|
@ -1147,9 +1147,8 @@ idSlowChannel::Reset
|
|||
===================
|
||||
*/
|
||||
void idSlowChannel::Reset() {
|
||||
memset( this, 0, sizeof( *this ) );
|
||||
|
||||
this->chan = chan;
|
||||
active = false;
|
||||
chan = nullptr;
|
||||
|
||||
curPosition.Set( 0 );
|
||||
newPosition.Set( 0 );
|
||||
|
@ -1157,6 +1156,7 @@ void idSlowChannel::Reset() {
|
|||
curSampleOffset = -10000;
|
||||
newSampleOffset = -10000;
|
||||
|
||||
playbackState = 0;
|
||||
triggerOffset = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue