Decompile fn_07996 (ModelNode::~ModelNode)
Batch #12626 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_07996 ModelNode::~ModelNode: logic confirmed by peer review Peer-reviewed-by: Yommy, aDw, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
b0f52d4024
commit
b17c136a61
1 changed files with 4 additions and 4 deletions
|
|
@ -53,10 +53,10 @@ ModelNode::ModelNode() : model(nullptr), parent(nullptr), alpha(255) {
|
|||
// OFFSET: 0x007568E0
|
||||
// FUNCTION: fn_07996
|
||||
ModelNode::~ModelNode() {
|
||||
for (CTexture* texture : this->textures) {
|
||||
if (texture) {
|
||||
texture->Release();
|
||||
g_texMgr.Remove(texture);
|
||||
for (std::vector<CTexture*>::iterator it = this->textures.begin(); it != this->textures.end(); ++it) {
|
||||
if (*it) {
|
||||
(*it)->Release();
|
||||
g_texMgr.Remove(*it);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue