From 9a257d81368b4484a5a1effc40ecf35022feb554 Mon Sep 17 00:00:00 2001 From: jianglong0156 Date: Wed, 5 Aug 2015 16:15:22 +0800 Subject: [PATCH] fix lua pai error --- .../android/jni/Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/scripting/lua-bindings/manual/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge.cpp b/cocos/scripting/lua-bindings/manual/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge.cpp index 78b5b39c5b..e38c371ea8 100644 --- a/cocos/scripting/lua-bindings/manual/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge.cpp +++ b/cocos/scripting/lua-bindings/manual/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge.cpp @@ -15,7 +15,7 @@ extern "C" { JNIEXPORT jint JNICALL Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge_callLuaFunctionWithString (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()); return ret; }