fix warning in FlyTextGui.cs

This commit is contained in:
goat 2021-08-14 03:23:28 +02:00
parent a2be2470a6
commit 4f26402893
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -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;
}
}
}