From b7cefbabbf69702ea21c89297c6441c5752ea373 Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 6 Jan 2016 13:15:01 +0100 Subject: [PATCH] Fixed: Big endian number --- code/ryzom/client/src/r2/dmc/client_edition_module.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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