diff --git a/src/AudioManager.cpp b/src/AudioManager.cpp index d2e149f..a7221d9 100644 --- a/src/AudioManager.cpp +++ b/src/AudioManager.cpp @@ -428,8 +428,9 @@ void AudioManager::update(float dt) { if (m_playCurrentSongQueuedForLoad) startPlayingCurrentSong(); if (m_isInEditor && !LevelEditorLayer::get()) { - em::log::warn("potential m_isInEditor desync! setting m_isInEditor to false..."); - m_isInEditor = false; + em::log::warn("potential m_isInEditor desync! prematurely running exitEditor..."); + exitEditor(); + return; } // update easings