mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix warning in FlyTextGui.cs
This commit is contained in:
parent
a2be2470a6
commit
4f26402893
1 changed files with 9 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue