- fixed incorrect write barrier in sound sequence code.

This commit is contained in:
Christoph Oelckers 2019-08-09 08:42:36 +02:00
parent 8447525019
commit a239675fb5

View file

@ -808,7 +808,7 @@ DSeqNode::DSeqNode (FLevelLocals *l, int sequence, int modenum)
} }
else else
{ {
Level->SequenceListHead->m_Prev = this; GC::WriteBarrier(Level->SequenceListHead->m_Prev, this); Level->SequenceListHead->m_Prev = this; GC::WriteBarrier(Level->SequenceListHead, this);
m_Next = Level->SequenceListHead; GC::WriteBarrier(this, Level->SequenceListHead); m_Next = Level->SequenceListHead; GC::WriteBarrier(this, Level->SequenceListHead);
Level->SequenceListHead = this; Level->SequenceListHead = this;
m_Prev = nullptr; m_Prev = nullptr;