From b0af3abb3969f8b7fbd452fcbc4c1097c06c3ef4 Mon Sep 17 00:00:00 2001 From: Duncan Date: Tue, 8 Jun 2021 22:09:31 +0100 Subject: [PATCH] Fix #14854. Accidental double inversion (#14855) --- src/openrct2/world/TileInspector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/world/TileInspector.cpp b/src/openrct2/world/TileInspector.cpp index 6c61929a79..7dbb1dec4f 100644 --- a/src/openrct2/world/TileInspector.cpp +++ b/src/openrct2/world/TileInspector.cpp @@ -94,7 +94,7 @@ namespace OpenRCT2::TileInspector GameActionResultPtr InsertCorruptElementAt(const CoordsXY& loc, int16_t elementIndex, bool isExecuting) { // Make sure there is enough space for the new element - if (!!MapCheckCapacityAndReorganise(loc)) + if (!MapCheckCapacityAndReorganise(loc)) return std::make_unique(GameActions::Status::NoFreeElements, STR_NONE); if (isExecuting) @@ -359,7 +359,7 @@ namespace OpenRCT2::TileInspector GameActionResultPtr PasteElementAt(const CoordsXY& loc, TileElement element, bool isExecuting) { // Make sure there is enough space for the new element - if (!!MapCheckCapacityAndReorganise(loc)) + if (!MapCheckCapacityAndReorganise(loc)) { return std::make_unique(GameActions::Status::NoFreeElements, STR_NONE); }