Merge pull request #60 from rtw1x1/main

fix: CheckMeshIndex bounds check to use actual mesh count
This commit is contained in:
rtw1x1
2025-12-31 10:12:44 +00:00
committed by GitHub

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;