replace NULL and avoid ai_assert with more than 2 tests.

This commit is contained in:
Kim Kulling
2020-06-23 21:05:42 +02:00
659 changed files with 30283 additions and 48642 deletions

View File

@@ -414,7 +414,8 @@ void DeboneProcess::UpdateNode(aiNode* pNode) const
}
if( pNode->mNumMeshes > 0 ) {
delete [] pNode->mMeshes; pNode->mMeshes = NULL;
delete[] pNode->mMeshes;
pNode->mMeshes = nullptr;
}
pNode->mNumMeshes = static_cast<unsigned int>(newMeshList.size());