diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 5f08a8d28c..12ae346942 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -6,6 +6,7 @@ - Fix: [#6123, #7907, #9472, #11028] Cannot build some track designs with 4 stations (original bug). - Fix: [#7094] Back wall edge texture in water missing. - Fix: [#10928] File browser's date column is too narrow. +- Fix: [#10951, #11160] Attempting to place park entrances creates ghost entrances in random locations. - Fix: [#11005] Company value overflows. - Fix: [#11027] Third color on walls becomes black when saving. - Improved: [#11157] Slimmer virtual floor lines. diff --git a/src/openrct2/actions/PlaceParkEntranceAction.hpp b/src/openrct2/actions/PlaceParkEntranceAction.hpp index f1406d6d6f..026fc2c221 100644 --- a/src/openrct2/actions/PlaceParkEntranceAction.hpp +++ b/src/openrct2/actions/PlaceParkEntranceAction.hpp @@ -77,8 +77,8 @@ public: GA_ERROR::INVALID_PARAMETERS, STR_CANT_BUILD_PARK_ENTRANCE_HERE, STR_ERR_TOO_MANY_PARK_ENTRANCES); } - int8_t zLow = _loc.z; - int8_t zHigh = zLow + ParkEntranceHeight; + auto zLow = _loc.z; + auto zHigh = zLow + ParkEntranceHeight; CoordsXYZ entranceLoc = _loc; for (uint8_t index = 0; index < 3; index++) { @@ -123,8 +123,8 @@ public: gParkEntrances.push_back(parkEntrance); - int8_t zLow = _loc.z; - int8_t zHigh = zLow + ParkEntranceHeight; + auto zLow = _loc.z; + auto zHigh = zLow + ParkEntranceHeight; CoordsXY entranceLoc = { _loc.x, _loc.y }; for (uint8_t index = 0; index < 3; index++) {