diff --git a/cocos/base/CCUserDefault.cpp b/cocos/base/CCUserDefault.cpp index e78078ea70..394fd5ca67 100644 --- a/cocos/base/CCUserDefault.cpp +++ b/cocos/base/CCUserDefault.cpp @@ -297,8 +297,7 @@ void UserDefault::setStringForKey(const char* pKey, const std::string & value) if ((_realSize + obs.length() + sizeof(udflen_t)) < _curMapSize) { // increase entities count - auto count = yasio::endian::ntohv(*(udflen_t*)_rwmmap->data()); - *(udflen_t*)_rwmmap->data() = yasio::endian::htonv(count + 1); + yasio::obstream::swrite_i(_rwmmap->data(), 1 + yasio::ibstream::sread_i(_rwmmap->data())); // append entity ::memcpy(_rwmmap->data() + sizeof(udflen_t) + _realSize, obs.data(), obs.length()); diff --git a/external/config.json b/external/config.json index 366f3474fd..9d2c2d0eda 100644 --- a/external/config.json +++ b/external/config.json @@ -1,5 +1,5 @@ { - "version": "v28", + "version": "v29", "zip_file_size": "107642814", "repo_name": "engine-v5-3rd", "repo_parent": "https://github.com/c4games/",