From 2e2af670e3d7b2053f1734b25ad8ecad44251e1b Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Sun, 29 Dec 2024 10:26:53 +0100 Subject: [PATCH] Possibly prevent a future crash --- P3D/Entites/Other/NPC.vb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/P3D/Entites/Other/NPC.vb b/P3D/Entites/Other/NPC.vb index e8f9b31aa..21933752f 100644 --- a/P3D/Entites/Other/NPC.vb +++ b/P3D/Entites/Other/NPC.vb @@ -321,8 +321,9 @@ If r <> lastRectangle Then lastRectangle = r - - Textures(0) = TextureManager.GetTexture(Me.Texture, r, 1) + If Me.Texture IsNot Nothing Then + Textures(0) = TextureManager.GetTexture(Me.Texture, r, 1) + End If End If End If End Sub