Wait for thread in dtor

This commit is contained in:
Christian Semmler 2024-05-30 16:49:26 -04:00
parent 50460aaa84
commit 5d388104ad

View File

@ -16,6 +16,9 @@ MxThread::MxThread()
// FUNCTION: LEGO1 0x100bf5a0 // FUNCTION: LEGO1 0x100bf5a0
MxThread::~MxThread() MxThread::~MxThread()
{ {
if (m_thread) {
SDL_WaitThread(m_thread, NULL);
}
} }
// FUNCTION: LEGO1 0x100bf610 // FUNCTION: LEGO1 0x100bf610