From df34efa4fce8cd8b351fced5c9579fdf5cfbf80d Mon Sep 17 00:00:00 2001 From: Ramen2X Date: Thu, 28 Mar 2024 16:57:49 -0400 Subject: [PATCH] remove redundancy --- LEGO1/lego/legoomni/src/common/legoutils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/LEGO1/lego/legoomni/src/common/legoutils.cpp b/LEGO1/lego/legoomni/src/common/legoutils.cpp index 8dbb1b97..be85e1f6 100644 --- a/LEGO1/lego/legoomni/src/common/legoutils.cpp +++ b/LEGO1/lego/legoomni/src/common/legoutils.cpp @@ -390,12 +390,11 @@ LegoNamedTexture* ReadNamedTexture(LegoFile* p_file) if (texture != NULL) { if (texture->Read(p_file, 0) != SUCCESS) { delete texture; - return namedTexture; } namedTexture = new LegoNamedTexture(string.GetData(), texture); - if (namedTexture == NULL && texture != NULL) { + if (namedTexture == NULL) { delete texture; } }