Merge pull request #2869 from xyhl515/develop

issue #2307: JSB function getCPBody return type is not right.
This commit is contained in:
James Chen 2013-06-18 23:56:21 -07:00
commit e432496dc4
1 changed files with 1 additions and 1 deletions

View File

@ -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;