Merge pull request #33994 from nekomatata/start-fail-errors

Flush remaining messages before quitting the game when loading fails
This commit is contained in:
Rémi Verschelde 2019-12-01 11:53:43 +01:00 committed by GitHub
commit 52e3993eb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2090,6 +2090,11 @@ void Main::cleanup() {
ERR_FAIL_COND(!_start_success);
if (script_debugger) {
// Flush any remaining messages
script_debugger->idle_poll();
}
ResourceLoader::remove_custom_loaders();
ResourceSaver::remove_custom_savers();