mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 08:41:16 +00:00
remove redundancy
This commit is contained in:
parent
69dbda7306
commit
df34efa4fc
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user