From 0ff522de311120e8cd8ef745ca08d54f1806e07a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Wed, 4 Dec 2024 17:26:13 +0200 Subject: [PATCH] Remove the assertion, code currently expects this behavior --- src/openrct2/windows/Intent.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/openrct2/windows/Intent.cpp b/src/openrct2/windows/Intent.cpp index 0430cac15e..2dd7e6aa3e 100644 --- a/src/openrct2/windows/Intent.cpp +++ b/src/openrct2/windows/Intent.cpp @@ -33,9 +33,7 @@ static auto getExtraImpl(const IntentDataStorage& storage, uint32_t key) auto it = std::ranges::lower_bound(storage, key, {}, &IntentDataEntry::first); if (it == storage.end() || it->first != key) { - // If key does not exist then the usage of Intent is incorrect. - assert(false); - + // TODO: The code currently assumes that some things are optional, we need to handle this better. return T{}; }