2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-13 21:26:09 +00:00

CModel destructor & frame list fixes

This commit is contained in:
2022-03-09 02:23:56 -05:00
parent 8d83afa102
commit d62336b813
6 changed files with 19 additions and 2 deletions

View File

@@ -133,6 +133,11 @@ CModel::CModel(std::unique_ptr<u8[]> in, u32 dataLen, IObjectStore* store)
// DCFlushRange(x0_data, dataLen);
}
CModel::~CModel() {
RemoveFromList();
sTotalMemory -= x4_dataLen;
}
void CModel::UpdateLastFrame() { x38_lastFrame = CGraphics::GetFrameCounter(); }
void CModel::MoveToThisFrameList() {