From 4eef155d0c86a0a6817374549dd882edb9b5f117 Mon Sep 17 00:00:00 2001 From: MidoriKami <9083275+MidoriKami@users.noreply.github.com> Date: Sun, 8 Jan 2023 18:28:13 -0800 Subject: [PATCH] GameGui.cs GetAddonByName use default index of 1 to reflect most common usage of function. --- Dalamud/Game/Gui/GameGui.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dalamud/Game/Gui/GameGui.cs b/Dalamud/Game/Gui/GameGui.cs index 18f59c75a..301f7a634 100644 --- a/Dalamud/Game/Gui/GameGui.cs +++ b/Dalamud/Game/Gui/GameGui.cs @@ -323,7 +323,7 @@ public sealed unsafe class GameGui : IDisposable, IServiceType /// Name of addon to find. /// Index of addon to find (1-indexed). /// IntPtr.Zero if unable to find UI, otherwise IntPtr pointing to the start of the addon. - public unsafe IntPtr GetAddonByName(string name, int index) + public unsafe IntPtr GetAddonByName(string name, int index = 1) { var atkStage = FFXIVClientStructs.FFXIV.Component.GUI.AtkStage.GetSingleton(); if (atkStage == null)