Possibly prevent a future crash

This commit is contained in:
JappaWakka 2024-12-29 10:26:53 +01:00
parent a8dd94a7e6
commit 2e2af670e3
1 changed files with 3 additions and 2 deletions

View File

@ -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