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:
@@ -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{};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user