diff --git a/cocos/2d/CCUserDefaultAndroid.cpp b/cocos/2d/CCUserDefaultAndroid.cpp index 8f6895f572..ded6b7eaeb 100644 --- a/cocos/2d/CCUserDefaultAndroid.cpp +++ b/cocos/2d/CCUserDefaultAndroid.cpp @@ -470,7 +470,7 @@ void UserDefault::setDataForKey(const char* pKey, const Data& value) CCLOG("SET DATA ENCODED: --%s", encodedData); - return setStringForKeyJNI(pKey, encodedData); + setStringForKeyJNI(pKey, encodedData); if (encodedData) free(encodedData);