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; s32 id = 0;
for (const auto& [key, _] : map) for (const auto& [key, value] : map)
{
if (key != id) if (key != id)
break; break;
else
++id; ++id;
}
return id; return id;
} }
template <typename Map> template <typename Map>
static inline auto map_find(Map& map, typename Map::key_type id) static inline auto map_find(Map& map, typename Map::key_type id)
-> typename Map::mapped_type* -> typename Map::mapped_type*

View File

@@ -290,7 +290,6 @@ void anm2_animation_null_animation_add(Anm2Animation* animation, s32 id);
void anm2_animation_null_animation_remove(Anm2Animation* animation, s32 id); void anm2_animation_null_animation_remove(Anm2Animation* animation, s32 id);
void anm2_animation_remove(Anm2* self, s32 id); void anm2_animation_remove(Anm2* self, s32 id);
void anm2_animation_serialize_to_string(Anm2Animation* animation, std::string* string); void anm2_animation_serialize_to_string(Anm2Animation* animation, std::string* string);
void anm2_created_on_set(Anm2* self);
void anm2_frame_bake(Anm2* self, Anm2Reference* reference, s32 interval, bool isRoundScale, bool isRoundRotation); void anm2_frame_bake(Anm2* self, Anm2Reference* reference, s32 interval, bool isRoundScale, bool isRoundRotation);
void anm2_frame_from_time(Anm2* self, Anm2Frame* frame, Anm2Reference reference, f32 time); void anm2_frame_from_time(Anm2* self, Anm2Frame* frame, Anm2Reference reference, f32 time);
void anm2_frame_remove(Anm2* self, Anm2Reference* reference); void anm2_frame_remove(Anm2* self, Anm2Reference* reference);