stop music and video when disposing the world

This commit is contained in:
Matthias Mailänder
2015-06-27 11:00:06 +02:00
parent 2c8437f80d
commit e58ce7d59b

View File

@@ -387,6 +387,9 @@ namespace OpenRA
frameEndActions.Clear();
Sound.StopMusic();
Sound.StopVideo();
// Dispose newer actors first, and the world actor last
foreach (var a in actors.Reverse())
a.Dispose();