From 415a1ec2838110aff5ff5e9240de2cebd588a0ee Mon Sep 17 00:00:00 2001 From: Knack117 Date: Sun, 22 Feb 2026 14:15:35 -0500 Subject: [PATCH] Fix NullReferenceException when Target is null (v0.0.3.14) - Add null check for e.Target before dereferencing in FlyTextArtist.Draw - Prevents crash when fly text events reference despawned characters - Bump version to 0.0.3.14 Co-authored-by: Cursor --- CBT/CBT.csproj | 2 +- CBT/Interface/FlyTextArtist.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CBT/CBT.csproj b/CBT/CBT.csproj index 6a72521..cf8f41b 100644 --- a/CBT/CBT.csproj +++ b/CBT/CBT.csproj @@ -3,7 +3,7 @@ cultbaus - - 0.0.3.13 + 0.0.3.14 This plugin manipulates flytext. - https://github.com/cultbaus/CBT diff --git a/CBT/Interface/FlyTextArtist.cs b/CBT/Interface/FlyTextArtist.cs index 6228b05..37707eb 100644 --- a/CBT/Interface/FlyTextArtist.cs +++ b/CBT/Interface/FlyTextArtist.cs @@ -31,7 +31,7 @@ public unsafe class FlyTextArtist flyTextEvents.ForEach(e => { - if (e.Kind != FlyTextKind.None) + if (e.Kind != FlyTextKind.None && e.Target != null) { var qt = Service.Tree.GetQuadTree(e.Target->GetGameObjectId().ObjectId);