mirror of https://github.com/axmolengine/axmol.git
Merge pull request #2869 from xyhl515/develop
issue #2307: JSB function getCPBody return type is not right.
This commit is contained in:
commit
e432496dc4
|
@ -81,7 +81,7 @@ JSBool JSPROXY_CCPhysicsSprite_getCPBody(JSContext *cx, uint32_t argc, jsval *vp
|
||||||
cpBody* ret_val;
|
cpBody* ret_val;
|
||||||
|
|
||||||
ret_val = real->getCPBody();
|
ret_val = real->getCPBody();
|
||||||
jsval ret_jsval = opaque_to_jsval(cx, ret_val);
|
jsval ret_jsval = c_class_to_jsval( cx, ret_val, JSB_cpBody_object, JSB_cpBody_class, "cpBody" );
|
||||||
JS_SET_RVAL(cx, vp, ret_jsval);
|
JS_SET_RVAL(cx, vp, ret_jsval);
|
||||||
|
|
||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
|
|
Loading…
Reference in New Issue