X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=extensions%2Fgdx-bullet%2Fjni%2Fswig-src%2Fcom%2Fbadlogic%2Fgdx%2Fphysics%2Fbullet%2FbtShapeHull.java;h=e3fada430faa9523fe65f3ceca6cecdc331d1165;hb=aa70c3be0bf0ed0dbf02eaa61734de8d87e1b75d;hp=a74473e87038c657f39c37434bc8d06d9de79c5b;hpb=8d697c917ce56326b64f74fbe068b5fcf1978c6e;p=mikumikustudio%2Flibgdx-mikumikustudio.git diff --git a/extensions/gdx-bullet/jni/swig-src/com/badlogic/gdx/physics/bullet/btShapeHull.java b/extensions/gdx-bullet/jni/swig-src/com/badlogic/gdx/physics/bullet/btShapeHull.java index a74473e87..e3fada430 100644 --- a/extensions/gdx-bullet/jni/swig-src/com/badlogic/gdx/physics/bullet/btShapeHull.java +++ b/extensions/gdx-bullet/jni/swig-src/com/badlogic/gdx/physics/bullet/btShapeHull.java @@ -26,6 +26,13 @@ public class btShapeHull extends BulletBase { construct(); } + @Override + protected void reset(long cPtr, boolean cMemoryOwn) { + if (!destroyed) + destroy(); + super.reset(swigCPtr = cPtr, cMemoryOwn); + } + public static long getCPtr(btShapeHull obj) { return (obj == null) ? 0 : obj.swigCPtr; }