Skip to content

Commit

Permalink
Possible TTS fix (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
FireNameFN authored Nov 13, 2024
1 parent 1caf015 commit ae0fa71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Content.Client/Corvax/TTS/TTSSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public sealed class TTSSystem : EntitySystem
[Dependency] private readonly AudioSystem _audio = default!;

private ISawmill _sawmill = default!;
private readonly MemoryContentRoot _contentRoot = new();
private MemoryContentRoot _contentRoot = default!;
private static readonly ResPath Prefix = ResPath.Root / "TTS";

/// <summary>
Expand All @@ -40,6 +40,7 @@ public sealed class TTSSystem : EntitySystem

public override void Initialize()
{
_contentRoot = new();
_sawmill = Logger.GetSawmill("tts");
_res.AddRoot(Prefix, _contentRoot);
_cfg.OnValueChanged(CCCVars.TTSVolume, OnTtsVolumeChanged, true);
Expand Down

0 comments on commit ae0fa71

Please sign in to comment.