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:
ragnarok-clanker 2026-11-06 02:09:42 +00:00
commit b17c136a61

View file

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