remove redundancy

This commit is contained in:
Ramen2X 2024-03-28 16:57:49 -04:00
parent 69dbda7306
commit df34efa4fc

View File

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