Skip to content
Permalink
Browse files

untangle asserts allow to know which condition failed

  • Loading branch information...
hoijui committed Feb 17, 2018
1 parent b3dbc80 commit 72986304b4e4968dcfe40c5d1d3580901829e0ca
Showing with 2 additions and 1 deletion.
  1. +2 −1 external/Box2D/Source/Collision/b2PairManager.cpp
@@ -131,7 +131,8 @@ b2Pair* b2PairManager::AddPair(int32 proxyId1, int32 proxyId2)
return pair;
}

b2Assert(m_pairCount < b2_maxPairs && m_freePair != b2_nullPair);
b2Assert(m_pairCount < b2_maxPairs);
b2Assert(m_freePair != b2_nullPair);

uint16 pairIndex = m_freePair;
pair = m_pairs + pairIndex;

0 comments on commit 7298630

Please sign in to comment.
You can’t perform that action at this time.