mirror of https://github.com/axmolengine/axmol.git
fix lua pai error
This commit is contained in:
parent
fac7a78fc8
commit
9a257d8136
|
@ -15,7 +15,7 @@ extern "C" {
|
||||||
JNIEXPORT jint JNICALL Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge_callLuaFunctionWithString
|
JNIEXPORT jint JNICALL Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge_callLuaFunctionWithString
|
||||||
(JNIEnv *env, jclass cls, jint functionId, jstring value)
|
(JNIEnv *env, jclass cls, jint functionId, jstring value)
|
||||||
{
|
{
|
||||||
std::string strValue = cocos2d::StringUtils::getStringUTFCharsJNI(env, value, strValue);
|
std::string strValue = cocos2d::StringUtils::getStringUTFCharsJNI(env, value);
|
||||||
int ret = LuaJavaBridge::callLuaFunctionById(functionId, strValue.c_str());
|
int ret = LuaJavaBridge::callLuaFunctionById(functionId, strValue.c_str());
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue