From 3e22f8eb9d5bd68792d9fcbabe47d9a9c1c4bca4 Mon Sep 17 00:00:00 2001 From: shweet Date: Sun, 14 Sep 2025 21:31:13 -0400 Subject: [PATCH] weird --- src/COMMON.h | 8 ++++---- src/anm2.h | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/COMMON.h b/src/COMMON.h index 7ddef2f..dae244b 100644 --- a/src/COMMON.h +++ b/src/COMMON.h @@ -242,16 +242,16 @@ static inline s32 map_next_id_get(const std::map& 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 static inline auto map_find(Map& map, typename Map::key_type id) -> typename Map::mapped_type* diff --git a/src/anm2.h b/src/anm2.h index 748e749..5d82032 100644 --- a/src/anm2.h +++ b/src/anm2.h @@ -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_remove(Anm2* self, s32 id); 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_from_time(Anm2* self, Anm2Frame* frame, Anm2Reference reference, f32 time); void anm2_frame_remove(Anm2* self, Anm2Reference* reference);