diff --git a/src/PacMan.GameComponents/GameActs/AttractAct.cs b/src/PacMan.GameComponents/GameActs/AttractAct.cs index fcc8c42..6e25ee4 100644 --- a/src/PacMan.GameComponents/GameActs/AttractAct.cs +++ b/src/PacMan.GameComponents/GameActs/AttractAct.cs @@ -42,7 +42,6 @@ struct Instruction bool _chaseSubActReady; bool _finished; - readonly string _version; [SuppressMessage("ReSharper", "HeapView.ObjectAllocation.Evident")] public AttractAct( @@ -51,7 +50,7 @@ public AttractAct( IHumanInterfaceParser input, IGameSoundPlayer gameSoundPlayer) { - _version = Assembly + string version = Assembly .GetEntryAssembly() ?.GetCustomAttribute() ?.InformationalVersion ?? "??"; @@ -59,7 +58,7 @@ public AttractAct( MarqueeText[] texts = { new() { - Text = $"v{_version}", + Text = $"v{version}", YPosition = 195, TimeIdle = 1.Seconds(), TimeIn = 1.Seconds(),