diff --git a/Dalamud/Game/Gui/FlyText/FlyTextGui.cs b/Dalamud/Game/Gui/FlyText/FlyTextGui.cs index 74e7c8f01..0883c60aa 100644 --- a/Dalamud/Game/Gui/FlyText/FlyTextGui.cs +++ b/Dalamud/Game/Gui/FlyText/FlyTextGui.cs @@ -184,6 +184,15 @@ namespace Dalamud.Game.Gui.FlyText this.createFlyTextHook.Enable(); } + private static byte[] Terminate(byte[] source) + { + var terminated = new byte[source.Length + 1]; + Array.Copy(source, 0, terminated, 0, source.Length); + terminated[^1] = 0; + + return terminated; + } + private IntPtr CreateFlyTextDetour( IntPtr addonFlyText, int kind, @@ -299,14 +308,5 @@ namespace Dalamud.Game.Gui.FlyText return retVal; } - - private static byte[] Terminate(byte[] source) - { - var terminated = new byte[source.Length + 1]; - Array.Copy(source, 0, terminated, 0, source.Length); - terminated[^1] = 0; - - return terminated; - } } }