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); }