fix lua pai error

This commit is contained in:
jianglong0156 2015-08-05 16:15:22 +08:00
parent fac7a78fc8
commit 9a257d8136
1 changed files with 1 additions and 1 deletions

View File

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