mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-12 23:54:33 +00:00
- fixed potential crash when sound sequence is destroyed
Level can be unset if sound sequence destruction happens after saved game loading failure https://forum.zdoom.org/viewtopic.php?t=72551
This commit is contained in:
parent
e1ce6ea40d
commit
f0600091fa
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ void DSeqNode::OnDestroy()
|
|||
m_ParentSeqNode->m_ChildSeqNode = nullptr;
|
||||
m_ParentSeqNode = nullptr;
|
||||
}
|
||||
if (Level->SequenceListHead == this)
|
||||
if (Level && Level->SequenceListHead == this)
|
||||
{
|
||||
Level->SequenceListHead = m_Next;
|
||||
GC::WriteBarrier(m_Next);
|
||||
|
|
Loading…
Reference in a new issue