From f55e4f37b6b705b79fe92a92bcd9cf19e2f6d7b6 Mon Sep 17 00:00:00 2001 From: Mike Lester Date: Sun, 15 Dec 2024 17:56:04 +0200 Subject: [PATCH] J2D: Add `| null` to optional member Co-authored-by: Jasper St. Pierre --- src/Common/JSYSTEM/J2D.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common/JSYSTEM/J2D.ts b/src/Common/JSYSTEM/J2D.ts index 7b6961226..d08378c29 100644 --- a/src/Common/JSYSTEM/J2D.ts +++ b/src/Common/JSYSTEM/J2D.ts @@ -320,7 +320,7 @@ export class J2DPicture extends J2DPane { private sdraw = new TSDraw(); // TODO: Time to move TSDraw out of Mario Galaxy? private materialHelper: GXMaterialHelperGfx; - private tex: BTIData; + private tex: BTIData | null = null; constructor(data: PAN1, private cache: GfxRenderCache, parent: J2DPane | null) { super(data, cache, parent);