diff --git a/LEGO1/lego/sources/anim/legoanim.h b/LEGO1/lego/sources/anim/legoanim.h index d5e834f3..e2a1b5c7 100644 --- a/LEGO1/lego/sources/anim/legoanim.h +++ b/LEGO1/lego/sources/anim/legoanim.h @@ -91,7 +91,6 @@ class LegoAnimNodeData : public LegoTreeNodeData { LegoBool FUN_100a0990(LegoFloat p_time); const LegoChar* GetName() { return m_name; } - LegoU32 GetNumTranslationKeys() { return (LegoU32) m_numTranslationKeys; } LegoResult FUN_100a03c0(LegoTime p_time, Matrix4& p_matrix) { return FUN_100a03c0((LegoFloat) p_time, p_matrix); } LegoBool FUN_100a0990(LegoTime p_time) { return FUN_100a0990((LegoFloat) p_time); } diff --git a/LEGO1/lego/sources/roi/legoroi.cpp b/LEGO1/lego/sources/roi/legoroi.cpp index 9431be4b..2b2aa544 100644 --- a/LEGO1/lego/sources/roi/legoroi.cpp +++ b/LEGO1/lego/sources/roi/legoroi.cpp @@ -395,7 +395,7 @@ LegoResult LegoROI::FUN_100a8da0(LegoTreeNode* p_node, const Matrix4& p_matrix, LegoBool und = data->FUN_100a0990(p_time); roi->SetUnknown0x0c(und); - for (LegoU32 i = 0; i < data->GetNumTranslationKeys(); i++) { + for (LegoU32 i = 0; i < p_node->GetNumChildren(); i++) { FUN_100a8da0(p_node->GetChild(i), roi->m_local2world, p_time, roi); } }