diff --git a/src/openrct2/core/DataSerialiserTraits.h b/src/openrct2/core/DataSerialiserTraits.h index b45adbec22..12124c8aea 100644 --- a/src/openrct2/core/DataSerialiserTraits.h +++ b/src/openrct2/core/DataSerialiserTraits.h @@ -65,8 +65,8 @@ struct DataSerializerTraits static void encode(IStream *stream, const std::string& str) { uint16 len = (uint16)str.size(); - len = ByteSwapBE(len); - stream->Write(&len); + uint16 swapped = ByteSwapBE(len); + stream->Write(&swapped); stream->WriteArray(str.c_str(), len); } static void decode(IStream *stream, std::string& res) diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index 4b3e1cbc0c..e848c874a7 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -51,7 +51,7 @@ typedef struct GameAction GameAction; // This define specifies which version of network stream current build uses. // It is used for making sure only compatible builds get connected, even within // single OpenRCT2 version. -#define NETWORK_STREAM_VERSION "14" +#define NETWORK_STREAM_VERSION "15" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION #ifdef __cplusplus