diff --git a/cocos/2d/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp b/cocos/2d/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp index 6af1c6b1f7..bf353aca3f 100644 --- a/cocos/2d/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp +++ b/cocos/2d/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp @@ -190,7 +190,7 @@ double getDoubleForKeyJNI(const char* pKey, double defaultValue) if (JniHelper::getStaticMethodInfo(t, CLASS_NAME, "getDoubleForKey", "(Ljava/lang/String;D)D")) { jstring stringArg = t.env->NewStringUTF(pKey); - jdouble ret = t.env->CallStaticDoubleMethod(t.classID, t.methodID, stringArg); + jdouble ret = t.env->CallStaticDoubleMethod(t.classID, t.methodID, stringArg, defaultValue); t.env->DeleteLocalRef(t.classID); t.env->DeleteLocalRef(stringArg);