diff --git a/code/ryzom/client/src/r2/dmc/client_edition_module.cpp b/code/ryzom/client/src/r2/dmc/client_edition_module.cpp index 8e2cb5695..073be77cc 100644 --- a/code/ryzom/client/src/r2/dmc/client_edition_module.cpp +++ b/code/ryzom/client/src/r2/dmc/client_edition_module.cpp @@ -1511,6 +1511,10 @@ bool CClientEditionModule::loadUserComponent(const std::string& filename, bool m nlwarning("Error while reading %s", filename.c_str()); } +#ifdef NL_BIG_ENDIAN + NLMISC_BSWAP32(uncompressedFileLength); +#endif + fclose(file); // Test if data are not too big