This commit is contained in:
2025-09-14 21:31:13 -04:00
parent cf9f04ecdc
commit 3e22f8eb9d
2 changed files with 4 additions and 5 deletions

View File

@@ -242,16 +242,16 @@ static inline s32 map_next_id_get(const std::map<s32, T>& map)
{
s32 id = 0;
for (const auto& [key, _] : map)
for (const auto& [key, value] : map)
{
if (key != id)
break;
else
++id;
++id;
}
return id;
}
template <typename Map>
static inline auto map_find(Map& map, typename Map::key_type id)
-> typename Map::mapped_type*