From 230747119a4eef355576b05c6fa92faad0fe16cf Mon Sep 17 00:00:00 2001 From: Mr-Wiseguy Date: Mon, 4 Aug 2025 00:51:42 -0400 Subject: [PATCH] Fix the actor extension API breaking when registering an extension for actor type 0 first --- src/game/recomp_actor_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/recomp_actor_api.cpp b/src/game/recomp_actor_api.cpp index 8cbe5a6..759b9a0 100644 --- a/src/game/recomp_actor_api.cpp +++ b/src/game/recomp_actor_api.cpp @@ -79,7 +79,7 @@ extern "C" void recomp_register_actor_extension(uint8_t* rdram, recomp_context* } if (actor_data_sizes.size() <= actor_type) { - actor_data_sizes.resize(2 * actor_type); + actor_data_sizes.resize(actor_type + 1); } // Increase the actor type's extension data size by the provided size (rounded up to a multiple of 16).