mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-12-02 01:03:53 +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() {
|
void idSlowChannel::Reset() {
|
||||||
memset( this, 0, sizeof( *this ) );
|
active = false;
|
||||||
|
chan = nullptr;
|
||||||
this->chan = chan;
|
|
||||||
|
|
||||||
curPosition.Set( 0 );
|
curPosition.Set( 0 );
|
||||||
newPosition.Set( 0 );
|
newPosition.Set( 0 );
|
||||||
|
@ -1157,6 +1156,7 @@ void idSlowChannel::Reset() {
|
||||||
curSampleOffset = -10000;
|
curSampleOffset = -10000;
|
||||||
newSampleOffset = -10000;
|
newSampleOffset = -10000;
|
||||||
|
|
||||||
|
playbackState = 0;
|
||||||
triggerOffset = 0;
|
triggerOffset = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue