From 600d32807d66b7ee5611783bd89fbd46bd8b2b6f Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 15 Dec 2018 20:30:20 +0100 Subject: [PATCH] Fix #8033: Crash when placing 64th sign --- src/openrct2/network/Network.cpp | 2 +- src/openrct2/world/LargeScenery.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openrct2/network/Network.cpp b/src/openrct2/network/Network.cpp index 5d187d10bb..06896888a4 100644 --- a/src/openrct2/network/Network.cpp +++ b/src/openrct2/network/Network.cpp @@ -30,7 +30,7 @@ // This string 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 "13" +#define NETWORK_STREAM_VERSION "14" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION static rct_peep* _pickup_peep = nullptr; diff --git a/src/openrct2/world/LargeScenery.cpp b/src/openrct2/world/LargeScenery.cpp index 117c8378d1..9bf3c13c2a 100644 --- a/src/openrct2/world/LargeScenery.cpp +++ b/src/openrct2/world/LargeScenery.cpp @@ -46,7 +46,7 @@ BannerIndex LargeSceneryElement::GetBannerIndex() const void LargeSceneryElement::SetBannerIndex(BannerIndex newIndex) { - entryIndex |= newIndex & 0xC0; + type |= newIndex & 0xC0; colour[0] |= (newIndex & 0x38) << 2; colour[1] |= (newIndex & 7) << 5; } @@ -88,4 +88,4 @@ rct_scenery_entry* get_large_scenery_entry(int32_t entryIndex) result = (rct_scenery_entry*)obj->GetLegacyData(); } return result; -} \ No newline at end of file +}