Open xezon opened 3 months ago
I verified this against original and the code we have right now is correct to the original (i.e. the subobj->Release_Ref(); line)
Ok. Then perhaps this is original game bug. It would only lead to memory leak, not corruption, so it is not critical problem.
Original call to single
Release_Ref
looks wrong to me, becausem_lod[i][j].m_model
andm_additionalModels[i].m_model
are individually ref counted. So this looks like it would leak.