1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

Remove the assertion, code currently expects this behavior

This commit is contained in:
ζeh Matt
2024-12-04 17:26:13 +02:00
parent dd78366a4c
commit 0ff522de31

View File

@@ -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{};
}