diff --git a/soh/soh/Enhancements/debugconsole.cpp b/soh/soh/Enhancements/debugconsole.cpp index 88748370a..7dbc6d6a0 100644 --- a/soh/soh/Enhancements/debugconsole.cpp +++ b/soh/soh/Enhancements/debugconsole.cpp @@ -454,7 +454,7 @@ static bool FileSelectHandler(std::shared_ptr Console, const std: } static bool QuitHandler(std::shared_ptr Console, const std::vector& args) { - gPlayState->state.running = 0; + Ship::Window::GetInstance()->Close(); return CMD_SUCCESS; }