From 3ba33d098e4812de74a9e9c42a6ebfa253335280 Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Fri, 12 May 2017 23:41:25 +0200 Subject: [PATCH] Set correct base height for newly inserted corrupt elements --- src/openrct2/network/network.h | 2 +- src/openrct2/world/tile_inspector.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index 01c06aba5d..00a86ef231 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -56,7 +56,7 @@ extern "C" { // 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 "3" +#define NETWORK_STREAM_VERSION "4" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION #ifdef __cplusplus diff --git a/src/openrct2/world/tile_inspector.c b/src/openrct2/world/tile_inspector.c index d621dd296b..807e96ff3b 100644 --- a/src/openrct2/world/tile_inspector.c +++ b/src/openrct2/world/tile_inspector.c @@ -83,7 +83,7 @@ sint32 tile_inspector_insert_corrupt_at(sint32 x, sint32 y, sint16 elementIndex, corruptElement->type = MAP_ELEMENT_TYPE_CORRUPT; // Set the base height to be the same as the selected element - rct_map_element *const selectedElement = map_get_nth_element_at(x, y, elementIndex); + rct_map_element *const selectedElement = map_get_nth_element_at(x, y, elementIndex + 1); if (!selectedElement) { return MONEY32_UNDEFINED; }