Skip to content

Commit 95cc12d

Browse files
updated validation
1 parent 5a0a909 commit 95cc12d

File tree

1 file changed

+1
-1
lines changed
  • include/reactphysics3d/containers

1 file changed

+1
-1
lines changed

include/reactphysics3d/containers/Deque.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ class Deque {
296296

297297
clear();
298298

299-
if (mBuffer != nullptr && mCapacity == 0) {
299+
if (mBuffer != nullptr && mCapacity > 0) {
300300
// Release the chunks array
301301
mAllocator.release(mBuffer, sizeof(T) * mCapacity);
302302
}

0 commit comments

Comments
 (0)