mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-13 21:30:09 +00:00
fix compile error on GCC
This commit is contained in:
parent
ea0df70c77
commit
b979064817
@ -749,7 +749,7 @@ void CommonRigidBodyMTBase::createEmptyDynamicsWorld()
|
||||
#if USE_PARALLEL_ISLAND_SOLVER
|
||||
{
|
||||
btConstraintSolver* solvers[ BT_MAX_THREAD_COUNT ];
|
||||
int maxThreadCount = min( BT_MAX_THREAD_COUNT, TaskManager::getMaxNumThreads() );
|
||||
int maxThreadCount = btMin( int(BT_MAX_THREAD_COUNT), TaskManager::getMaxNumThreads() );
|
||||
for ( int i = 0; i < maxThreadCount; ++i )
|
||||
{
|
||||
solvers[ i ] = createSolverByType( m_solverType );
|
||||
|
Loading…
Reference in New Issue
Block a user