fix: CheckMeshIndex bounds check to use actual mesh count

This commit is contained in:
rtw1x1
2025-12-31 10:10:11 +00:00
parent 999a0929a6
commit 846fab02dc

View File

@@ -257,7 +257,7 @@ BOOL CGrannyModel::CheckMeshIndex(int iIndex) const
{
if (iIndex < 0)
return FALSE;
if (iIndex >= m_meshNodeSize)
if (iIndex >= GetMeshCount())
return FALSE;
return TRUE;