From 0ed8e1ef36ae8d30edab9d4d74481ffac01f39b4 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 4 Jul 2003 13:17:56 +0000 Subject: prevent (or rather: make much less likely) some sound output related race conditions svn-id: r8740 --- common/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/main.cpp') diff --git a/common/main.cpp b/common/main.cpp index 658895c27d..761644fc15 100644 --- a/common/main.cpp +++ b/common/main.cpp @@ -229,6 +229,9 @@ int main(int argc, char *argv[]) { // Run the game engine engine->go(); + // Stop all sound processing now (this prevents some race conditions later on) + system->clear_sound_proc(); + // Free up memory delete engine; delete g_gui; -- cgit v1.2.3