Merge pull request #60 from rtw1x1/main
fix: CheckMeshIndex bounds check to use actual mesh count
This commit is contained in:
@@ -257,7 +257,7 @@ BOOL CGrannyModel::CheckMeshIndex(int iIndex) const
|
|||||||
{
|
{
|
||||||
if (iIndex < 0)
|
if (iIndex < 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
if (iIndex >= m_meshNodeSize)
|
if (iIndex >= GetMeshCount())
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user