From 58f699b285da37dc9ca5ccec195be60589a39fbd Mon Sep 17 00:00:00 2001 From: GradualSyrup <68757075+GradualSyrup@users.noreply.github.com> Date: Mon, 21 Aug 2023 21:27:01 -0500 Subject: [PATCH] Fix crash when loading save state while grabbing with Olimar (#604) * grab check, maybe useless * fix crash via article_allowlist * fmt --- src/training/save_states.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/training/save_states.rs b/src/training/save_states.rs index 2321cc6..afab02d 100644 --- a/src/training/save_states.rs +++ b/src/training/save_states.rs @@ -35,7 +35,7 @@ use crate::training::ui::notifications; use crate::{is_ptrainer, ITEM_MANAGER_ADDR}; // Don't remove Mii hats, or Luma, or crafting table -const ARTICLE_ALLOWLIST: [(LuaConst, LuaConst); 7] = [ +const ARTICLE_ALLOWLIST: [(LuaConst, LuaConst); 8] = [ ( FIGHTER_KIND_MIIFIGHTER, FIGHTER_MIIFIGHTER_GENERATE_ARTICLE_HAT, @@ -52,6 +52,7 @@ const ARTICLE_ALLOWLIST: [(LuaConst, LuaConst); 7] = [ (FIGHTER_KIND_PICKEL, FIGHTER_PICKEL_GENERATE_ARTICLE_TABLE), (FIGHTER_KIND_ELIGHT, FIGHTER_ELIGHT_GENERATE_ARTICLE_ESWORD), (FIGHTER_KIND_EFLAME, FIGHTER_EFLAME_GENERATE_ARTICLE_ESWORD), + (FIGHTER_KIND_PIKMIN, FIGHTER_PIKMIN_GENERATE_ARTICLE_PIKMIN), ]; extern "C" {