Fix the music resetting from time to time
This commit is contained in:
@@ -76,6 +76,7 @@ namespace OpenRA
|
|||||||
public void Initialize(ISoundLoader[] loaders, IReadOnlyFileSystem fileSystem)
|
public void Initialize(ISoundLoader[] loaders, IReadOnlyFileSystem fileSystem)
|
||||||
{
|
{
|
||||||
sounds = new Cache<string, ISoundSource>(s => LoadSound(loaders, fileSystem, s));
|
sounds = new Cache<string, ISoundSource>(s => LoadSound(loaders, fileSystem, s));
|
||||||
|
currentSounds = new Dictionary<uint, ISound>();
|
||||||
music = null;
|
music = null;
|
||||||
currentMusic = null;
|
currentMusic = null;
|
||||||
video = null;
|
video = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user