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