DanielChappuis / reactphysics3d

Open source C++ physics engine library in 3D
http://www.reactphysics3d.com
zlib License
1.55k stars 224 forks source link

Don't free Deque on 0 capacity #375

Closed Gulcar closed 6 months ago

Gulcar commented 8 months ago

I got a segmentation fault if I didn't add any RigidBodies when PhysicsCommon's destructor ran. In the allocator release there is an assert for size > 0.

DanielChappuis commented 6 months ago

Thanks a lot for your fix. I have already merge into the 'develop' branch another pull request that fixes the same issue. I am closing this one but again thanks a lot for your time.