behdad / box2d

Automatically exported from code.google.com/p/box2d
2 stars 12 forks source link

Error with b2DynamicTree.cpp #347

Open mahdilamb opened 3 years ago

mahdilamb commented 3 years ago

Hi,

On line 178 in b2DynamicTree.cpp, the insertion count is incremented (as part of insertLeaf ,though this method is also called by moveProxy and a few others). Further, it is not decremented on removal.

I would suggest that m_insertionCount should be incremented in createProxy; decremented in DestroyProxy and removed from line 178.