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 <cursoragent@cursor.com>
This commit is contained in:
2026-02-22 14:15:35 -05:00
parent 4e4b2bd32d
commit f6beb8981a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<PropertyGroup>
<Authors>cultbaus</Authors>
<Company>-</Company>
<Version>0.0.3.13</Version>
<Version>0.0.3.14</Version>
<Description>This plugin manipulates flytext.</Description>
<Copyright>-</Copyright>
<PackageProjectUrl>https://github.com/cultbaus/CBT</PackageProjectUrl>
+1 -1
View File
@@ -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);