From 2c08701ad9c8520cced653e5c00313c5d2322763 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Tue, 5 Mar 2024 12:07:13 -0500 Subject: [PATCH] Match --- LEGO1/lego/sources/roi/legoroi.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/LEGO1/lego/sources/roi/legoroi.cpp b/LEGO1/lego/sources/roi/legoroi.cpp index f3d5b670..4dbd9d98 100644 --- a/LEGO1/lego/sources/roi/legoroi.cpp +++ b/LEGO1/lego/sources/roi/legoroi.cpp @@ -290,13 +290,17 @@ LegoResult LegoROI::Read( SetLODList(lodList); if (lodList != NULL) { - // lodList->AddRef(); lodList->Release(); } if (textureName != NULL) { if (!strnicmp(textureName, "t_", 2)) { LegoTextureInfo* textureInfo = p_textureContainer->Get(textureName + 2); + + if (textureInfo == NULL) { + goto done; + } + FUN_100a9210(textureInfo); FUN_100a9170(1.0F, 1.0F, 1.0F, 0.0F); }