diff --git a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAbout.cs b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAbout.cs index 3ad67a841..b0f3e7e02 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAbout.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAbout.cs @@ -10,6 +10,7 @@ using Dalamud.Game.Gui; using Dalamud.Interface.GameFonts; using Dalamud.Plugin.Internal; using Dalamud.Utility; +using FFXIVClientStructs.FFXIV.Client.Game.UI; using ImGuiNET; using ImGuiScene; @@ -190,7 +191,7 @@ Contribute at: https://github.com/goatcorp/Dalamud public override string Title => Loc.Localize("DalamudAbout", "About"); /// - public override void OnOpen() + public override unsafe void OnOpen() { var pluginCredits = Service.Get().InstalledPlugins .Where(plugin => plugin.Manifest != null) @@ -200,8 +201,10 @@ Contribute at: https://github.com/goatcorp/Dalamud this.creditsText = string.Format(CreditsTextTempl, typeof(Dalamud).Assembly.GetName().Version, pluginCredits, Util.GetGitHashClientStructs()); var gg = Service.Get(); - if (!gg.IsOnTitleScreen()) - gg.SetBgm(833); + if (!gg.IsOnTitleScreen() && UIState.Instance() != null) + { + gg.SetBgm((ushort)(UIState.Instance()->PlayerState.MaxExpansion > 3 ? 833 : 132)); + } this.creditsThrottler.Restart();