From 25c94c9c6d18878ba38fe6b01a99a0f60d89fe3c Mon Sep 17 00:00:00 2001 From: Raymond Date: Wed, 6 Oct 2021 17:21:06 -0400 Subject: [PATCH] Fix crash in flytext --- Dalamud/Game/Gui/FlyText/FlyTextGui.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dalamud/Game/Gui/FlyText/FlyTextGui.cs b/Dalamud/Game/Gui/FlyText/FlyTextGui.cs index 043f02755..c3191562a 100644 --- a/Dalamud/Game/Gui/FlyText/FlyTextGui.cs +++ b/Dalamud/Game/Gui/FlyText/FlyTextGui.cs @@ -213,8 +213,8 @@ namespace Dalamud.Game.Gui.FlyText var tmpKind = kind; var tmpVal1 = val1; var tmpVal2 = val2; - var tmpText1 = MemoryHelper.ReadSeStringNullTerminated(text1); - var tmpText2 = MemoryHelper.ReadSeStringNullTerminated(text2); + var tmpText1 = text1 == IntPtr.Zero ? string.Empty : MemoryHelper.ReadSeStringNullTerminated(text1); + var tmpText2 = text2 == IntPtr.Zero ? string.Empty : MemoryHelper.ReadSeStringNullTerminated(text2); var tmpColor = color; var tmpIcon = icon; var tmpYOffset = yOffset;