Fix crashes (better)

This commit is contained in:
Asriel Camora
2025-04-29 14:28:10 -07:00
parent d34e54c3a8
commit 70fd756068
+4 -1
View File
@@ -528,7 +528,10 @@ public sealed unsafe class SynthHelper : Window, IDisposable
private void OnUseAction(ActionType action)
{
if (!ShouldOpen || IsCollapsed)
Addon = (AddonSynthesis*)Service.GameGui.GetAddonByName("Synthesis");
if (Addon == null)
return;
if (Addon->AtkUnitBase.WindowNode == null)
return;
(_, CurrentState) = new SimNoRandom().Execute(GetCurrentState(), action);